Shprd
Search
⌃K
📥

Deposit in a vault

Guide to deposit in a vault.
Any user can deposit in a vault. The user must deposit base token, which is the first token of the vault contained in the structure (in Solidity, at vault.tokens(0)). Most of the time it will be dollar pegged stablecoin. For a vault with [USDC, WBTC, WETH, WMATIC], the deposited token must be USDC.
The deposit transaction must not change the vault's current exposure to its underlying assets, so on each deposit the transaction takes as input calldata the associated swaps (generated by the Dex Aggregator API) to exchange the amount deposited.

How to deposit in a vault

On the Vaults page you can decide on which vault you want to deposit. If you want more precision about a vault or deposit, you can click on "see details to deposit".
Vaults
Then click on "Deposit"
Vault Overview
As is usual in DeFi with protocols that use ERC20 contracts, you have to sign 2 transactions to invest in a vault:
  1. 1.
    Approval transaction : Allow the protocol to interact with a quantity of ERC20 tokens that you own.
  2. 2.
    Deposit transaction : Execute the deposit transaction.
If you click on "Approved" you will see the amount of base token you have already approved and if you click on "Balance" you will see your base token balance.
You will also find the essential information on the vault:
  • Name : Name of the vault
  • TVL : Total value locked in the vault
  • Min deposit : Minimum deposit amount of basic tokens allowed
  • Max AUM : Maximum total market value of the vault
You can now enter the amount of base token to approve and click on "Approve SHPRD to access your ...". Here, the amount to approve is 6 BUSD.
Approve SHPRD to access your BUSD
A Metamask pop-pup should now appear. Take the time to check the transaction and sign it. As you can see below, this transaction allows the vault to interact with 6 BUSD.
You will need some BNB on the BSC or ETH on Arbitrum to pay the gas fee.
Metamask - Approval transaction
After the end of the approval, you will be able to deposit. Click on "Deposit ...". Here the amount to deposit is 6 BUSD.
Deposit funds in a vault
A second pop-up window should appear, sign it to execute the deposit transaction. You are now the owner of some vault shares.
You can see all deposit you have made on this page : https://beta.shprd.finance/app/wallet​