UNIVERSE - Mainnet
Maximising uniswap v3 returns UniverseFinance-v1 connector on mainnet triggers methods like deposit, withdraw. You can view details like source code, ABIs on Etherscan.
- Use
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
to indicate ETH. - use -1 or
dsa.maxValue
for the maximum amount in function. - If not sure about the arguments
getId
andsetId
, pass 0.
Deposit
Deposit in Universe Vault by Adapter
spells.add({ connector: "UNIVERSE-A", method: "deposit", args: [universeVault, amountA, amountB, getIds, setIds]});
Parameter | Type | Description |
---|---|---|
universeVault | address | Universe Official Vault Address |
amountA | uint256 | Amount of tokenA |
amountB | uint256 | Amount of tokenB |
getIds | uint256[] | ID to retrieve amountA and amountB |
setIds | uint256[] | ID to store amountA and amountB |
Withdraw
Withdraw Token0 & Token1 From Universe Vault
spells.add({ connector: "UNIVERSE-A", method: "withdraw", args: [universeVault, share0, share1, getIds, setIds]});
Parameter | Type | Description |
---|---|---|
universeVault | address | Universe Official Vault Address |
share0 | uint256 | Amount of uToken0. |
share1 | uint256 | Amount of uToken1. |
getIds | uint256[] | ID to retrieve amount of output token |
setIds | uint256[] | stores the amount of output tokens |
If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.
Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.