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:

  1. The Credit Manager calls transferFrom to move tokens from caller to Credit Account

  2. The token is enabled as collateral (if not already enabled)

  3. 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

Last updated