LogoLogo
  • Introduction
    • What is SingularityDAO?
    • Useful Links
    • Launchpad
      • FAQ
    • DynaSets
      • Why DynaSets
      • V1
        • Architecture
        • Audit
    • Vaults
      • Epoch Vaults
      • Unbonded Vaults
      • Yield Farming
    • DEX
    • SDAO Staking
      • Staking
      • FAQ
      • Guide
      • Audit
    • SREP
      • Tiers
  • Guides
    • General
      • How to Set Up a Wallet
      • How to Use Trust Wallet to Interact with the SingularityDAO dApp
      • How to Add a Custom Token in Trust Wallet
      • How to Add a Custom Token in MetaMask
    • Launchpad
      • How to Interact with the Launchpad
    • DynaSets
      • How to Participate in DynaSets
      • How to Withdraw DynaSet LP Tokens
      • How to Redeem DynaSet LP Tokens
    • Vaults
      • How to Stake
      • How to Yield Farm LP Tokens
    • DEX
      • How to Swap Tokens
      • How to Provide Liquidity
  • Smart Contracts
    • DynaSets
      • Token Balances
      • Deposit and Withdraw/Redeem
      • Execution
      • Forge
        • Deposit
        • Redeem
        • Withdraw
      • DynasetTvlOracle
      • Contract Addresses
    • SingularityDAO Token Contract Addresses
  • Governance
    • Governance
  • Research Papers
    • Artificial Intelligence
      • Architecture of Automated Crypto-Finance Agent
      • Adaptive Multi-Strategy Market Making Agent
      • Adaptive Predictive Portfolio Management Agent
  • Security
    • Smart Contract Audits
    • Telegram Admins
Powered by GitBook
On this page

Was this helpful?

  1. Smart Contracts
  2. DynaSets

Deposit and Withdraw/Redeem

joinDynaset(uint256 expectedSharesToMint)
        external
        override
        nonReentrant
        returns (uint256 sharesToMint)

Mint new dynaset tokens by providing the proportional amount of each underlying token's balance relative to the proportion of dynaset tokens minted. function can only be called by the forge contracts and min/max amounts checks are implemented in forge contracts.

For any underlying tokens which are not initialized, the caller must provide the proportional share of the minimum balance for the token rather than the actual balance.

dynasetAmountOut Amount of dynaset tokens to mint order as the dynaset's dynasetTokens list.

 exitDynaset(uint256 dynasetAmountIn)
        external
        override
        nonReentrant

Burns _amount dynaset tokens in exchange for the amounts of each underlying token's balance proportional to the ratio of tokens burned to total dynaset supply. function can only be called by the forge contracts and min/max amounts checks are implemented in forge contracts.

dynasetAmountIn Exact amount of dynaset tokens to burn
PreviousToken BalancesNextExecution

Last updated 2 years ago

Was this helpful?