Borrow
When you borrow USDC through Curvance, you're creating a debt position against your collateral. The system constantly evaluates your position to ensure it remains healthy (above the required collateralization ratio). The borrowing process is straightforward - you simply specify how much USDC you want to borrow, and the eUSDC contract handles the debt issuance. The borrowed USDC is sent directly to your wallet.
To borrow, you may call the borrow()
function in the respective eToken contract using these function arguments:
uint256
amount
The amount of the underlying asset to borrow
Implementation snippet:
Your borrowing capacity depends on your collateral value, the collateralization ratio of your assets, and current market conditions. Curvance's risk model determines the maximum amount you can borrow against your collateral.
Error Handling
When interacting with eUSDC contracts, you might encounter various errors. Curvance uses error selectors to provide specific information about what went wrong:
Common error scenarios include:
Insufficient collateral for your requested borrow amount
Market paused for borrowing (temporary protocol safety measure)
Trying to borrow less than the minimum loan size
Transaction would result in an unhealthy position
Last updated