BTB
/

Curvance

Lendingwebsite
Isolated lending markets on Monad. Each market pairs a borrowable cToken (lend and borrow) with collateral cTokens. Lend to earn interest, post collateral, borrow, repay, and withdraw. A 20 minute hold period applies after sensitive actions.

What you can do

lend-usdcLend USDC to earn interestapprove cUSDC to spend USDC, then cUSDC.deposit(amount, user); check maxDeposit and previewDeposit first
withdraw-usdcWithdraw lent USDCcUSDC.withdraw(amount, user, user) for an amount, or cUSDC.redeem(shares, user, user) for everything
post-collateralUse WMON as collateralapprove cWMON to spend WMON, then cWMON.depositAsCollateral(amount, user)
borrow-usdcBorrow USDC against collateralcheck MarketManager.statusOf(user), then cUSDC.borrow(amount, user); the 20 minute hold period starts
repay-usdcRepay USDC debtapprove cUSDC to spend USDC, then cUSDC.repay(amount); use debtBalance plus a buffer for a full repay
check-positionRead collateral, capacity and debtMarketManager.statusOf(user) returns collateral value, max debt and current debt
Markets are isolated. Each market has its own collateral and debt, so a problem in one market does not pool with another.
A 20 minute hold period applies after borrowing and other sensitive actions. Repaying, transfers, and some withdrawals are blocked during it.
Borrows must meet a minimum loan size, and partial repayments cannot leave a debt below it.
Liquidations can leave bad debt, which is socialized to lenders through the exchange rate.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
MarketManager (WMON | USDC market)other on monad0xa6A2A92F126b79Ee0804845ee6B52899b4491093
read statusOf(address)
Returns three values for an account: total collateral value, maximum debt it can take on, and current debt value (the docs do not state a unit, so check the market before relying on it).
read isListed(address)
True if a cToken is listed in this market manager.
read actionsPaused(address)
Returns three pause flags for a cToken. The first is the mint pause flag, and the docs use it to check whether deposits are open.
cUSDC (borrowable, WMON | USDC market)pool on monad0x8EE9FC28B8Da872c38A496e9dDB9700bb7261774
write deposit(uint256,address)
Lend USDC and receive cUSDC shares. Arguments: assets (USDC amount, 6 decimals), receiver. Approve this cUSDC address to spend the USDC first. Check maxDeposit and previewDeposit first.
write withdraw(uint256,address,address)
Withdraw an exact USDC amount. Arguments: assets, receiver, owner. Owner is the account whose shares are burned (your own address for your own position).
write redeem(uint256,address,address)
Burn cUSDC shares and receive USDC. Arguments: shares, receiver, owner. Use it for a redeem-all.
write borrow(uint256,address)
Borrow USDC against posted collateral. Arguments: assets (USDC, 6 decimals), receiver. Starts the 20 minute hold period. No approval is needed.
write repay(uint256)
Repay your own USDC debt. Argument: assets. Approve this cUSDC address to spend the USDC first. Use the projected debt for a full repay.
write repayFor(uint256,address)
Repay debt owned by another account. Arguments: assets, owner. Approve this cUSDC address first.
read debtBalance(address)
Current debt of an account, in the debt token's smallest unit.
read previewDeposit(uint256)
Shares you would receive for a deposit. Based on the last accrued exchange rate, so it can be slightly off.
cWMON (collateral, WMON | USDC market)pool on monad0x1e240E30E51491546deC3aF16B0b4EAC8Dd110D4
write depositAsCollateral(uint256,address)
Deposit WMON and post it as collateral in one call. Arguments: assets (WMON amount in wei), receiver. Approve this cWMON address to spend WMON first.
write postCollateral(uint256)
Post shares you already hold as collateral. Argument: shares.
write removeCollateral(uint256)
Un-post collateral shares. Argument: shares. Reverts if the account would become under-collateralized or is inside the hold period.
read collateralPosted(address)
Shares an account has posted as collateral in this cToken.