Deposit/Withdraw
The initial step to interact with the DAO involves depositing your assets. Initially, you must grant approval for the transfer of your funds by the GovUserKeeper
contract. For simplicity, all funds are approved for transfer. Subsequently, the deposit method on GovPool
is invoked, crediting your funds to the internal personal balance, thereby enabling you to utilize them within the DAO.
⚠️ All token amounts related inputs and outputs are expected to be in 18 decimals, regardless of the actual token's decimals.
⚠️ Both tokenAddress
and nftAddress
can possibly be zero.
To refund your assets, you can simply call the reverse withdraw
method, passing the receiver as the first parameter. You can only withdraw assets that aren't locked in proposals or delegated to anyone. To withdraw such funds, you must first cancel your vote or undelegate, respectively
⚠️ Deposits and withdrawals cannot be made within the same block (via multicall). This is done to prevent possible flashloan attacks.