Expected balance end-result↴ | |
AMPL -⇓ ? |
WAMPL +⇑ ? |
Expected balance end-result↴ | |
AMPL +⇑ ? |
WAMPL -⇓ ? |
Wallet Address | |
AMPL Balance | |
WAMPL Balance | |
Underlying AMPL | |
AMPL Allowance | |
Selected to UNwrap | |
Selected to wrap | |
Last approval tx | |
Last wrap tx | |
Last unwrap tx |
GAS WARNING: Make sure you TRIPLE CHECK GAS SETTINGS (PRICE AND LIMITS)
This WrΛpp, still needs polish, is mainly tested on metamask and brave, but is ready to be used at your own risk.
This WrΛpp is just an interface for connecting with the AMPL/WAMPL contract through your wallet (Metamask) to Wrap and Unwrap AMPL.
The official on-chain contract calculates and executes how much AMPL/WAMPL you will receive when wrapping/unwrapping.
Brave browser | Brave built-in wallet |
Metamask extensioin | Brave Metamask Extension |
Metamask smartphone app | Loosely tested |
GAS WARNING: Make sure you TRIPLE CHECK GAS SETTINGS (PRICE AND LIMITS)
Below the definitions we use in this interface for the process of going from AMPL to WAMPL and back
This site is designed around the idea that WAMPL is like a Wrapping paper for AMPL.
And so you can Wrap AMPL and Unwrap AMPL.
To send AMPL to the WAMPL-contract and receive WAMPL.
Wallet End-result: AMPL[-] WAMPL [+]To send WAMPL to the WAMPL-contract and receive AMPL.
Wallet End-result: AMPL[+] WAMPL [-]WAMPL-Contract | The official contract used to convert AMPL ↔ WAMPL |
Underlying AMPL | This is the amount of AMPL underlying your current WAMPL balance. |
AMPL Allowance | The allowance needed to be able to Wrap AMPL and receive WAMPL. |
* You are in Wrap mode - blue
* AMPL Allowance in [Account status section] is at least the amount of AMPL you want to wrap. (Or else first set AMPL allowance)
* You have selected the amount of AMPL you want to wrap
U can then;
* Use button "Wrap AMPL"
* You wallet should open now, double check settings! and confirm.
Expected End result
When transaction on etherscan confirms successfuly you should;
* Now have an y amount more WAMPL in your wallet.
* Have x amount less AMPL in your wallet.
* You are in unWrap mode - orange
* You have selected and Set the amount of AMPL you want to unWrap
U can then;
* Use button "Unwrap AMPL"
* You wallet should open now, double check settings! and confirm.
Expected End result
When transaction on etherscan confirms successfuly you should;
* Now have an x amount more AMPL in your wallet.
* Have y amount less WAMPL in your wallet.
In short
* Set allowance to amount/unlimited.
* Done
After successful wallet connection, make sure:
* You are in Wrap mode - blue
* You have selected and Set the amount of AMPL you want to allow to be wrapped.
U can then;
* Use button "Approve selected AMPL"
* Your wallet should open now, double check settings! and confirm.
Expected End result
When transaction confirms successfuly;
* The Allowance amount should now (after refresh) be vissible in the [Account status] section.
It is not needed to set an UNWRAP allowance.
This ticket contains the information needed for your wallet to send the wrap/unwrap transaction.
Below we added some scenarios you could use to test the behavior of this website.
Action | Expected transaction data |
---|---|
Allow WAMPL contract to wrap 10 AMPL |
Example image: image (opens in new tab) Amount: 10 AMPL Interacting with: (AMPL Contract) 0xD46bA6D942050d489DBd938a2C909A5d5039A161 To/spender: [WAMPL Contract] 0xEDB171C18cE90B633DB442f2A6F72874093b49Ef Data(function): Approve = 0x095ea7b3 Data: 0x095ea7b3000000000000000000000000edb171c18ce90b633db442f2a6f72874093b49ef00000000000000000000000000000000000000000000000000000002540be400 Data legenda: 0x[MethodID]000...000[WAMPL (spender) address]000...000[ampl amount hex] |
Wrap 10 AMPL
Pre-requisite: Allowance set |
Example image: image (opens in new tab) Interacting with: (WAMPL Contract) 0xEDB171C18cE90B633DB442f2A6F72874093b49Ef Gas Limit: ~ 150000 Data(function): Deposit = 0xb6b55f25 Data: 0xb6b55f2500000000000000000000000000000000000000000000000000000002540be400 Data legenda: 0x[MethodID]00000000000000000000000000000...000[ampl amount hex] |
Unwrap AMPL
Pre-requisite: 10 AMPL wrapped in WAMPL. |
Example image: image (opens in new tab) Interacting with: (WAMPL Contract) 0xEDB171C18cE90B633DB442f2A6F72874093b49Ef Gas Limit: USER INPUT0 Data(function): Approve = 0x2e1a7d4d Data: 0x2e1a7d4d00000000000000000000000000000000000000000000000000000002540be400 Data legenda: 0x[MethodID]00000000000000000000000000000...000[ampl amount hex] |