Lagoon
  • Back to App
  • Overview
    • What is Lagoon?
    • Lagoon Vault Architecture
    • FAQ
    • Terminology
  • VAULT
    • Overview
    • Deposit and Withdraw flows
    • Vault valuation
    • Fees
    • Roles and capacities
      • Vault admin
      • Valuation Oracle
      • Curator
      • Whitelist Manager
    • Create your vault
      • Vault post-deployment operations
      • Access your vault on Lagoon
    • How to?
      • Update the vault valuation & settle requests
      • Activate and manage a synchronous vault
      • Migrate an existing vault into a new Lagoon vault ?
  • Curation solutions
    • Safe & Zodiac Roles Modifier
    • MPC (Multi-Party Computation) wallet
    • How to?
      • Renounce Safe & Zodiac role modifier ownership
  • Developer hub
    • Key Data Structures and Epoch mechanism
    • Integration
      • Get a user position
      • Async deposit flow
      • Synchronous deposit flow
  • RESOURCES
    • Addresses
    • Audits
    • Brand Kit
    • X
    • Blog
    • LinkedIn
Powered by GitBook
On this page
  1. Developer hub
  2. Integration

Get a user position

PreviousIntegrationNextAsync deposit flow

Last updated 22 days ago

Lagoon vaults are based on ; the standard for asynchronous deposits and redemptions in a vault.

7540 is an extension of 4626 that add functions around requests and tweak others like max functions and deposit/mint/withdraw/redeem functions.

A user total share balance is the addition of the return of three functions:

  • vault.balanceOf(userAddress); → ERC20 function

  • vault.maxMint(userAddress); → shares ready to be claimed (to not be confused with the ERC4626 maxMint function)

  • vault.pendingRedeemRequest(0, userAddress); → user shares waiting to be redeemed.

ERC7540
Why 0 ?