Adding Collateral
Deposit tokens from your wallet to a Credit Account.
For Solidity implementation, see Adding Collateral.
Why
You need to add collateral when:
Opening an account - Initial deposit to enable borrowing
Improving health factor - Account approaching liquidation threshold
Enabling more borrowing - Current collateral limits how much you can borrow
Adding collateral increases your account's total weighted value (TWV), which improves the health factor and allows larger debt positions.
What
addCollateral transfers tokens from your wallet to the Credit Account. On execution:
The Credit Manager calls
transferFromto move tokens from caller to Credit AccountThe token is enabled as collateral (if not already enabled)
Quoted tokens are NOT auto-enabled - you must set a quota separately
Important: Approve tokens to the Credit Manager, not the Credit Facade. The Credit Manager is the contract that actually executes the transfer.
How
Using Permit (No Separate Approval)
For EIP-2612 compatible tokens, you can avoid the separate approval transaction:
Gotchas
Approve to Credit Manager, Not Facade
The most common mistake. The Credit Manager executes the transferFrom, so it needs the approval:
Quoted Tokens Need Quota
Adding a quoted token as collateral does NOT automatically enable it. You must also call updateQuota:
Direct Transfers Don't Enable
Sending tokens directly to a Credit Account (via transfer) does NOT enable them as collateral. You still need a multicall with enableToken to count them in the health factor.
Invalid Collateral Tokens
Only tokens recognized by the Credit Manager can be used as collateral. Transferring unrecognized tokens to a Credit Account may result in them being stuck (only governance can recover).
Check if a token is valid:
See Also
Withdrawing Collateral - The reverse operation
Debt Management - Often combined with adding collateral
Updating Quotas - Required for quoted tokens
Last updated
