BTB
/

Mellow Core Vaults

Onchain Capital Allocatorwebsite
Mellow Core Vaults are onchain vaults run under a mandate, with deposits and redemptions handled by queues. An agent can request a deposit through a deposit queue, request a redemption through a redeem queue, and read the vault liquid assets and claimable shares.

What you can do

depositDeposit USDC into msvUSDapprove DepositQueue (USDC) for USDC, then DepositQueue.deposit(assets, referral, merkleProof); claim shares later with claim(account) once processed
redeemRequest a redemption of msvUSDapprove RedeemQueue (USDC) for the shares, then RedeemQueue.redeem(shares); claim with claim(receiver, timestamps) after processing
check-vaultRead vault liquidity and claimable sharesVault.getLiquidAssets(), Vault.claimableSharesOf(account)
Deposits and redemptions are processed in batches by the curator. They are not instant.
The vault mandate sets who can deposit, which assets are accepted and where funds can be allocated. Mandates can change.
Deposits can be refused if the account is not on an allowlist (merkle proof) or a hook rejects it.
Curators and admins can pause queues, change limits and move funds between subvaults.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
msvUSD Vaultvault on ethereum0x7207595E4c18a9A829B9dc868F11F3ADd8FCF626
read getLiquidAssets()
Value of assets the vault holds liquid, ready for redemptions.
read getAssetCount()
How many assets the vault accepts.
read assetAt(uint256)
Asset address at an index. Argument: index (0 up to getAssetCount).
read claimableSharesOf(address)
Vault shares an account can claim after its deposit was processed. Argument: account.
write claimShares(address)
Claim shares for an account after a deposit request was processed. Argument: account.
msvUSD DepositQueue (USDC)other on ethereum0xA9e5120dD134E42BE7EBA828C5eA857dc9c75D83
write deposit(uint224,address,bytes32[])
Request a deposit into the vault. Arguments: assets (amount in the token smallest unit), referral address (zero address if none), merkleProof (proof of eligibility; empty array if the queue has no allowlist). Approve the queue for the asset first. Native ETH can be sent as value for ETH deposits.
write claim(address)
Claim the shares for an account once its deposit request has been processed. Argument: account. Returns true on success.
read claimableOf(address)
Assets an account can still claim from processed deposit requests. Argument: account.
read requestOf(address)
Pending deposit request for an account. Returns two values; see the queue source for their meaning. Argument: account.
write cancelDepositRequest()
Cancel the caller pending deposit request if it has not been processed.
read asset()
Address of the asset this queue accepts.
msvUSD RedeemQueue (USDC)other on ethereum0xE1fC4025c4C62d0e3876296E1cE86EBB1b6dceC2
write redeem(uint256)
Request a redemption of vault shares. Argument: shares. Approve the queue for the shares first. Redemptions are processed in batches, not instantly.
write claim(address,uint32[])
Claim processed redemptions for a receiver. Arguments: receiver, timestamps (the request timestamps to claim).
read requestsOf(address,uint256,uint256)
List redemption requests for an account, paged. Arguments: account, offset, limit.
read getState()
Queue state values (four numbers); see the queue source for their meaning.
read asset()
Address of the asset redemptions are paid in.