Withdraw
Getting collateral assets back to your wallet
Last updated
Getting collateral assets back to your wallet
Last updated
This documentation is a work in progress!
At some point you might want the deposited collateral back to your wallet. This is done by performing a withdraw from the protocol.
On withdrawals, the protocol performs checks on the user debt. This prevents withdrawals that would cause the 's collateral ratio to get under the . If the checks pass, protocol reduces the recorded collateral deposit amount for the user and transfer the amount of tokens requested to the user.
If an account has existing debt, there is a required to back it up.
If accounts collateral value is smaller than the minimum collateral value, the withdrawal is not permitted.
In an emergency situation the multisig can pause the withdrawals of a Collateral Asset to prevent possible negative impact it would have.
For the minimum amount of collateral is 1e12 or 0.000001. So if you withdrawal ends up leaving dust lower than this amount, the transaction will revert.