Withdraw Funds

UI Step: After a deal is resolved, users can go to their dashboard and click "Withdraw" to retrieve their funds.

Technical Behavior:

  • Function: withdraw(address to, uint256 amount, address tokenAddress)

  • Users can withdraw their available balance from bankroll[msg.sender][tokenAddress].

  • Funds are transferred via safeTransfer.

Admin Withdraw:

  • Admin can withdraw collected fees using withdrawFees(address to, address tokenAddress).


1

Input token

You can either paste the contract address or type the token name. If the token is found, it will be available for selection.

2

Input amount

Enter the amount of tokens you wish to withdraw from the contract. Decimals will be handled automatically based on the token’s precision.

3

Withdraw

Click on "Withdraw", confirm the transaction in your wallet, and the funds will be instantly transferred to your EVM address.


withdraw funds UI

Last updated