immortal.farm first audit
The share token referenced in MultiVault is a Custom modification of ERC20PresetMinterPauser
***When depositing or withdrawing from a Multivault, please increase the gas limit by 2-3% manually in metamask.
In order to set up the contracts correctly you must do the following:
- Deploy MultiVault from stables.sol, focus.sol, duality.sol, or everything.sol
- Deploy ERC20PresetMinterPauser
- call declareShareAddress with the share address
- grant the MultiVault a Minter Role
- Deposit exactly 1 FTM into the contract as the initial deposit (in the live version, the wallet that does the initial deposit will have its private key burned so that it can never be withdrawn).
- Now the contract is ready to go.
- When withdrawing, you must first approve the spending enough of the share tokens by the vault.

