BTB
/

CIAN Yield Layer

Yield Aggregatorwebsite
CIAN Yield Layer vaults spread deposits across several yield sources and rebalance them. Agents can read vault data from the CIAN API, deposit the vault asset through the ERC-4626 interface, and check the share price and balances on-chain.

What you can do

depositDeposit the vault asset and receive vault sharesApprove the vault for the asset, then call deposit(assets, receiver). Check previewDeposit first.
check positionRead the value of a positionbalanceOf(account) for shares, then convertToAssets(shares) for the value in the underlying asset. Or use the vault API vault/user endpoint.
withdrawTake assets out of the vaultCall redeem(shares, receiver, owner) or withdraw(assets, receiver, owner), following the vault withdraw mode. Read the vault API pending withdrawals endpoint to track requests.
Yield comes from third-party DeFi strategies. A failure in one source can cause losses.
Withdrawal mode may not be instant. The CIAN docs describe a request-based path, so funds can be delayed.
Vault strategy and allocation can change without notice. Read the breakdown endpoint before depositing.
Smart contract risk applies. Check the audit reports listed by CIAN before depositing large amounts.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
stETH Yield Layer vaultvault on ethereum0xB13aa2d0345b0439b064f26B82D8dCf3f508775d
read asset()
Returns the underlying ERC-20 asset of the vault (ERC-4626).
write deposit(uint256,address)
ERC-4626 deposit of the underlying asset: (assets, receiver). Approve the vault for the asset first. Returns the shares minted to receiver.
write optionalDeposit(address,uint256,address,address)
Deposit another supported token: (token, assets, receiver, referral). Approve the vault for the token first. Returns the shares minted. Which tokens are accepted depends on the vault. The docs give WBTC, FBTC and pumpBTC as examples. Use referral = zero address if none.
write redeem(uint256,address,address)
ERC-4626 redeem: (shares, receiver, owner). Burns shares. The CIAN docs describe a request-based withdrawal path, so check the current withdraw mode before calling. Returns the assets sent.
write withdraw(uint256,address,address)
ERC-4626 withdraw: (assets, receiver, owner). Same withdraw-mode caveat as redeem.
read convertToAssets(uint256)
Assets worth a given number of shares at the current exchange rate.
read previewDeposit(uint256)
Shares that a deposit of the given assets would mint.
read previewRedeem(uint256)
Assets that a redeem of the given shares would return.
read balanceOf(address)
Vault share balance of an account.
read totalAssets()
Total assets managed by the vault.
read totalSupply()
Total vault shares outstanding.