BTB
/

Lagoon

Onchain Capital Allocatorwebsite
Lagoon vaults are ERC-7540 tokenized vaults. Users request deposits and redemptions that a curator settles later, and some vaults also allow instant sync deposits and redeems. An agent can request a deposit or redeem, claim settled shares or assets, and read vault state.

What you can do

request-depositRequest an async depositapprove the vault for the asset, then vault.requestDeposit(assets, controller, owner); after settlement call vault.deposit(assets, receiver, controller)
sync-depositDeposit in one call when allowedcheck syncMode() and previewSyncDeposit(assets), then vault.syncDeposit(assets, receiver, referral)
request-redeemRequest an async redemptionvault.requestRedeem(shares, controller, owner); after settlement call vault.redeem(shares, receiver, controller) or withdraw(assets, receiver, controller)
sync-redeemRedeem in one call when allowedvault.syncRedeem(shares, receiver, minimumAssets)
Deposits and redemptions settle only when the curator processes them. The timing is not fixed.
The curator and vault owner control strategy and fees. They are trusted parties.
Access can be restricted per account (isAllowed) and compliance guardrails can reject a call.
The Logic contract is an implementation. Call the user vault proxy address, not the Logic address, which is listed here only for its ABI.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Lagoon Factoryfactory on ethereum0x8D6f5479B14348186faE9BC7E636e947c260f9B1
ProtocolRegistryother on ethereum0x6dA4D1859bA1d02D095D2246142CdAd52233e27C
Vault implementation v0.6.0 (logic)vault on ethereum0x6C77c47FB8168E22976C3B0338CB1769c952249f
write requestDeposit(uint256,address,address)
Request an asynchronous deposit. Arguments: assets (smallest unit), controller (account that will own the request), owner (account the assets come from). Approve the vault for the asset first. The curator settles the request later; then call deposit or claim the shares.
write requestDeposit(uint256,address,address,address)
Same as requestDeposit with a fourth argument: referral address.
write deposit(uint256,address,address)
Claim shares for a settled deposit request. Arguments: assets, receiver, controller.
write cancelRequestDeposit()
Cancel the caller pending deposit request.
write cancelRequestDeposit(address)
Cancel a pending deposit request for a controller. Argument: controller.
write syncDeposit(uint256,address,address)
Deposit and receive shares in one call when the vault sync mode allows it (check syncMode and previewSyncDeposit first). Arguments: assets, receiver, referral.
write requestRedeem(uint256,address,address)
Request an asynchronous redemption of shares. Arguments: shares, controller, owner. The curator settles the request later.
write redeem(uint256,address,address)
Claim assets for a settled redeem request in exchange for shares. Arguments: shares, receiver, controller.
write withdraw(uint256,address,address)
Claim an exact asset amount from a settled redeem request. Arguments: assets, receiver, controller.
write syncRedeem(uint256,address,uint256)
Redeem shares immediately when the sync mode allows it. Arguments: shares, receiver, minimumAssets (the call reverts below this amount).
write claimSharesAndRequestRedeem(uint256)
Claim settled deposit shares and request to redeem them in one call. Argument: sharesToRedeem.
read totalAssets()
Total assets the vault reports.
read previewSyncDeposit(uint256)
Shares a synchronous deposit of this many assets would mint. Argument: assets.
read isAllowed(address)
Whether an account is allowed to use the vault. Argument: account.
read syncMode()
Current sync mode enum value. Check the Lagoon docs for what each value allows.
Lagoon Factoryfactory on base0x6FC0F2320483fa03FBFdF626DDbAE2CC4B112b51
ProtocolRegistryother on base0x6dA4D1859bA1d02D095D2246142CdAd52233e27C
Vault implementation v0.6.0 (logic)vault on base0xd04DeaBa7fD06634764CbFfe140011C69063aC77
write requestDeposit(uint256,address,address)
Request an asynchronous deposit. Arguments: assets (smallest unit), controller (account that will own the request), owner (account the assets come from). Approve the vault for the asset first. The curator settles the request later; then call deposit or claim the shares.
write requestDeposit(uint256,address,address,address)
Same as requestDeposit with a fourth argument: referral address.
write deposit(uint256,address,address)
Claim shares for a settled deposit request. Arguments: assets, receiver, controller.
write cancelRequestDeposit()
Cancel the caller pending deposit request.
write cancelRequestDeposit(address)
Cancel a pending deposit request for a controller. Argument: controller.
write syncDeposit(uint256,address,address)
Deposit and receive shares in one call when the vault sync mode allows it (check syncMode and previewSyncDeposit first). Arguments: assets, receiver, referral.
write requestRedeem(uint256,address,address)
Request an asynchronous redemption of shares. Arguments: shares, controller, owner. The curator settles the request later.
write redeem(uint256,address,address)
Claim assets for a settled redeem request in exchange for shares. Arguments: shares, receiver, controller.
write withdraw(uint256,address,address)
Claim an exact asset amount from a settled redeem request. Arguments: assets, receiver, controller.
write syncRedeem(uint256,address,uint256)
Redeem shares immediately when the sync mode allows it. Arguments: shares, receiver, minimumAssets (the call reverts below this amount).
write claimSharesAndRequestRedeem(uint256)
Claim settled deposit shares and request to redeem them in one call. Argument: sharesToRedeem.
read totalAssets()
Total assets the vault reports.
read previewSyncDeposit(uint256)
Shares a synchronous deposit of this many assets would mint. Argument: assets.
read isAllowed(address)
Whether an account is allowed to use the vault. Argument: account.
read syncMode()
Current sync mode enum value. Check the Lagoon docs for what each value allows.
Lagoon Factoryfactory on arbitrum0x9De724B0efEe0FbA07FE21a16B9Bf9bBb5204Fb4
ProtocolRegistryother on arbitrum0x6dA4D1859bA1d02D095D2246142CdAd52233e27C
Vault implementation v0.6.0 (logic)vault on arbitrum0x3f5A9e1D82c595d14bA93c97eB8a77928cFdee70
write requestDeposit(uint256,address,address)
Request an asynchronous deposit. Arguments: assets (smallest unit), controller (account that will own the request), owner (account the assets come from). Approve the vault for the asset first. The curator settles the request later; then call deposit or claim the shares.
write requestDeposit(uint256,address,address,address)
Same as requestDeposit with a fourth argument: referral address.
write deposit(uint256,address,address)
Claim shares for a settled deposit request. Arguments: assets, receiver, controller.
write cancelRequestDeposit()
Cancel the caller pending deposit request.
write cancelRequestDeposit(address)
Cancel a pending deposit request for a controller. Argument: controller.
write syncDeposit(uint256,address,address)
Deposit and receive shares in one call when the vault sync mode allows it (check syncMode and previewSyncDeposit first). Arguments: assets, receiver, referral.
write requestRedeem(uint256,address,address)
Request an asynchronous redemption of shares. Arguments: shares, controller, owner. The curator settles the request later.
write redeem(uint256,address,address)
Claim assets for a settled redeem request in exchange for shares. Arguments: shares, receiver, controller.
write withdraw(uint256,address,address)
Claim an exact asset amount from a settled redeem request. Arguments: assets, receiver, controller.
write syncRedeem(uint256,address,uint256)
Redeem shares immediately when the sync mode allows it. Arguments: shares, receiver, minimumAssets (the call reverts below this amount).
write claimSharesAndRequestRedeem(uint256)
Claim settled deposit shares and request to redeem them in one call. Argument: sharesToRedeem.
read totalAssets()
Total assets the vault reports.
read previewSyncDeposit(uint256)
Shares a synchronous deposit of this many assets would mint. Argument: assets.
read isAllowed(address)
Whether an account is allowed to use the vault. Argument: account.
read syncMode()
Current sync mode enum value. Check the Lagoon docs for what each value allows.
Lagoon Factoryfactory on avalanche0xC094C224ce0406BC338E00837B96aD2e265F7287
ProtocolRegistryother on avalanche0xD7F69ba99c6981Eab5579Aa16871Ae94c509d578
Vault implementation v0.6.0 (logic)vault on avalanche0x41669dB18dD923f726572cCFd4B1929e203fCC9d
write requestDeposit(uint256,address,address)
Request an asynchronous deposit. Arguments: assets (smallest unit), controller (account that will own the request), owner (account the assets come from). Approve the vault for the asset first. The curator settles the request later; then call deposit or claim the shares.
write requestDeposit(uint256,address,address,address)
Same as requestDeposit with a fourth argument: referral address.
write deposit(uint256,address,address)
Claim shares for a settled deposit request. Arguments: assets, receiver, controller.
write cancelRequestDeposit()
Cancel the caller pending deposit request.
write cancelRequestDeposit(address)
Cancel a pending deposit request for a controller. Argument: controller.
write syncDeposit(uint256,address,address)
Deposit and receive shares in one call when the vault sync mode allows it (check syncMode and previewSyncDeposit first). Arguments: assets, receiver, referral.
write requestRedeem(uint256,address,address)
Request an asynchronous redemption of shares. Arguments: shares, controller, owner. The curator settles the request later.
write redeem(uint256,address,address)
Claim assets for a settled redeem request in exchange for shares. Arguments: shares, receiver, controller.
write withdraw(uint256,address,address)
Claim an exact asset amount from a settled redeem request. Arguments: assets, receiver, controller.
write syncRedeem(uint256,address,uint256)
Redeem shares immediately when the sync mode allows it. Arguments: shares, receiver, minimumAssets (the call reverts below this amount).
write claimSharesAndRequestRedeem(uint256)
Claim settled deposit shares and request to redeem them in one call. Argument: sharesToRedeem.
read totalAssets()
Total assets the vault reports.
read previewSyncDeposit(uint256)
Shares a synchronous deposit of this many assets would mint. Argument: assets.
read isAllowed(address)
Whether an account is allowed to use the vault. Argument: account.
read syncMode()
Current sync mode enum value. Check the Lagoon docs for what each value allows.