BTB
/

3Jane Lending

Uncollateralized Lendingwebsite
Credit based money market on Ethereum. Supply USDC to earn yield through the senior tranche (USD3) and junior tranche (sUSD3), or borrow USDC on a credit line set by underwriting. The Helper contract takes USDC directly.

What you can do

supply-usdcDeposit USDC into USD3approve the Helper for the USDC, then Helper.deposit(amount, receiver, false); minimum deposit is 1,000 USDC
stake-usd3Stake USD3 into the junior trancheapprove sUSD3 for your USD3, then sUSD3.deposit(shares, receiver)
redeem-usd3Redeem USD3 for USDCapprove the Helper for your USD3 shares, then Helper.redeem(shares, receiver)
unstake-susd3Withdraw from sUSD3sUSD3.startCooldown(shares), wait for the cooldown, then sUSD3.redeem(shares, receiver, owner, maxLoss)
borrow-usdcDraw USDC on a credit lineonly with a credit line: Helper.borrow(marketParams, assets)
repay-usdcRepay credit line debtapprove the Helper for USDC, then Helper.repay(marketParams, assets, onBehalf, 0x)
Loans are underwritten off chain and drawn on credit lines. Defaults reduce the value backing the tranches.
Redemptions are not always instant. USD3 and sUSD3 have their own conditions, and sUSD3 uses a cooldown and a withdrawal window.
sUSD3 is the junior tranche. Read the loss distribution docs to see how losses are split between the tranches before choosing one.
USD3 and sUSD3 are Yearn-style strategies that hold waEthUSDC (Aave-wrapped USDC), so the Aave wrapper is part of the risk.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Helper (USDC in and out, USD3 and sUSD3 deposits, credit line draws)router on ethereum0x82736F81A56935c8429ADdbDa4aEBec737444505
write deposit(uint256,address,bool)
Deposit USDC into USD3. Arguments: assets (USDC amount, 6 decimals), receiver, hop (true also stakes the USD3 into sUSD3 for the receiver, and the receiver must be whitelisted). Approve the Helper to spend the USDC first.
write redeem(uint256,address)
Redeem USD3 shares for USDC. Arguments: shares, receiver. Approve the Helper for your USD3 shares first, because it redeems them on your behalf.
write borrow((address,address,address,address,uint256),uint256)
Draw USDC on your credit line. Arguments: MarketParams tuple (loanToken, collateralToken, oracle, irm, lltv) and assets. Returns the USDC received and the borrow shares. Only accounts with a credit line can borrow.
write repay((address,address,address,address,uint256),uint256,address,bytes)
Repay credit line debt in USDC. Arguments: MarketParams tuple, assets, onBehalf, data (empty bytes). Approve the Helper to spend the USDC first.
USD3 (senior tranche, ERC-4626)vault on ethereum0x056B269Eb1f75477a8666ae8C7fE01b64dD55eCc
write deposit(uint256,address)
Deposit waEthUSDC (the wrapped USDC the strategy uses) and receive USD3 shares. Arguments: assets, receiver. Most users deposit USDC through the Helper instead.
write redeem(uint256,address,address)
Redeem USD3 shares for waEthUSDC. Arguments: shares, receiver, owner. Redemption conditions vary, so check the FAQ first.
write redeem(uint256,address,address,uint256)
Same as the three argument redeem, with maxLoss, the largest loss in basis points you accept.
write withdraw(uint256,address,address)
Withdraw an exact waEthUSDC amount. Arguments: assets, receiver, owner.
sUSD3 (junior tranche, ERC-4626)vault on ethereum0xf689555121e529Ff0463e191F9Bd9d1E496164a7
write deposit(uint256,address)
Stake USD3 shares into the junior tranche. Arguments: assets (USD3 amount), receiver. Approve sUSD3 to spend your USD3 first.
write startCooldown(uint256)
Start the cooldown on sUSD3 shares before they can be withdrawn. Argument: shares. Check cooldownDuration and getCooldownStatus.
write cancelCooldown()
Cancel an active cooldown.
read getCooldownStatus(address)
Cooldown state for an address: three values. See the source for their meaning.
write redeem(uint256,address,address,uint256)
Redeem sUSD3 shares for USD3. Arguments: shares, receiver, owner, maxLoss (basis points). Check the cooldown first.
MorphoCredit (core money market)pool on ethereum0xDe6e08ac208088cc62812Ba30608D852c6B0EcBc
write supply((address,address,address,address,uint256),uint256,uint256,address,bytes)
Supply waEthUSDC to a market. Arguments: MarketParams tuple (loanToken, collateralToken, oracle, irm, lltv), assets, shares (use 0 when passing assets), onBehalf, data (empty bytes).
write withdraw((address,address,address,address,uint256),uint256,uint256,address,address)
Withdraw a supplied position. Arguments: MarketParams tuple, assets, shares, onBehalf, receiver.
write borrow((address,address,address,address,uint256),uint256,uint256,address,address)
Borrow against your credit line. Arguments: MarketParams tuple, assets, shares, onBehalf, receiver. Only accounts with a credit line can borrow.
write repay((address,address,address,address,uint256),uint256,uint256,address,bytes)
Repay borrowed waEthUSDC. Arguments: MarketParams tuple, assets, shares, onBehalf, data. Approve the contract for the amount first.