Escrow

When players connect their wallet to the bot, they must call connectAndApprove
from the DART
contract. This function approves unlimited spending of DART
by the escrow contract. When starting a game, the bot sends a transaction to the escrow contract to collect bets. Using this prior approval, the escrow contract transfers the appropriate number of tokens from each player's connected wallet to itself.
Last updated