How to deposit and withdraw through smart contracts
How to withdrawal
Define the vault from which you want to withdraw. At the moment we have 2 vaults on the Ethereum network and one on the Arbitrum network.
Locus Vaults Dashboard
Click on the Vault Address –– this link will take you to the blockchain browser where you can directly interact with the contract.
Vault Address Button
To get your amount of Vault token in a requirment format go to the Contract section. Then in the Read Contract section, Method 16. Enter your wallet address and you will receive your total amount of current vault tokens.
Read Contract Tab
Connect your wallet, and sign a transaction in Metamask.
Connect Wallet Button
After that go to the Contract section. Then in the Write Contract section. This section contains functions that modify the contract state.
Write Contract Section
Withdrawal Methods
We have several withdrawal methods. Simplest one - 27. You only need to enter the amount of Vault tokens you'd like to withdraw. Please note that it isn't dollars, but the specific format you copied from balanceOf method.
Enter the number of Vault's tokens in this format you'd like to withdraw click Write, and confirm the transaction in a metamask.