WAVAX - Avalanche
Wrap and Unwrap WAVAX. WAVAX-v1.0 connector on avalanche triggers methods like deposit, withdraw. You can view details like source code, ABIs on Snowtrace.
- Use
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
to indicate AVAX. - use -1 or
dsa.maxValue
for the maximum amount in function. - If not sure about the arguments
getId
andsetId
, pass 0.
Deposit
Wrap AVAX into WAVAX
spells.add({ connector: "WAVAX-A", method: "deposit", args: [amt, getId, setId]});
Parameter | Type | Description |
---|---|---|
amt | uint256 | The amount of AVAX to deposit. (For max: `uint256(-1)`) |
getId | uint256 | ID to retrieve amt. |
setId | uint256 | ID stores the amount of AVAX deposited. |
Withdraw
Unwrap AVAX from WAVAX
spells.add({ connector: "WAVAX-A", method: "withdraw", args: [amt, getId, setId]});
Parameter | Type | Description |
---|---|---|
amt | uint | The amount of wavax to withdraw. (For max: `uint256(-1)`) |
getId | uint | ID to retrieve amt. |
setId | uint | ID stores the amount of AVAX withdrawn. |
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.