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
2

Last updated