depositTonew shares are minted.
depositTo- Deposit Tokens & Mint Shares
depositTofunction interface is similar to the PrizePool
depositTofunction interface, minus the
referrerinputs, which are automatically added by the Pod during the batch process.
depositTofunction with the desired
withdraw- Burn Shares & Withdraw Tokens
withdrawfunction, as expected, handles withdraws from the Pod. To withdraw from a Pod, the user must have a positive share balance. Whether that's via depositing tokens or being transferred Pod shares.
shareAmountusers must also specify the
maxFeeamount. When exiting a PrizePool a fee may be applied, depending on the last deposit timestamp. Due to the nature of a Pod's regular deposits/withdrawals the early exit is constantly updating.
getEarlyExitFeeview function and entering the total underlying balance to be withdrawn.
balanceOfUnderlying(address user) returns (uint256 amount)which will calculate the underlying balance via the user's share balance.
drop- Claim Reward Tokens, Batch User Deposits and TokenDrop
dropfunction is responsible for claiming and distributing rewards tokens (i.e. POOL) to the TokenDrop smart contract and executing
batchwhich transfers recent token deposits into the PrizePool.
dropfunction. Instead it's up to the Pod owner/manager to regularly call
dropfunction and batch deposits.
batch- Batch User Deposits
batchfunction is responsible for moving deposited tokens from the Pod smart contract into the PrizePool smart contract.
batchfunction will be called indirectly via the
batchfunction is called indirectly because, in addition to converting tokens to tickets, it's important to claim and distribute the reward token, which is handled via the