How to Burn PNDO for pALEO?
PNDO's utility explained
Last updated
PNDO's utility explained
Last updated
As there is no web interface to burn PNDO yet, the burn function must be executed directly from the Leo Demo DApp. Here is the step-by-step guide to do so.
Program ID: pondo_protocol_token.aleo
Function Name: burn_public
Inputs: (One input per line)
YOUR_ADDRESS
(It must be the same as the wallet address connected to the dApp)
PNDO_BURNT_AMOUNT
(Postfixed with u128, as an integer with 6 digits precision, for instance 23.5 PNDO would be represented by 23500000u128)
WITHDRAWN_PALEO_AMOUNT
(Postfixed with u128, as an integer with 6 digits precision, for instance 123.456 ALEO would be represented by 123456000u128, see next section to learn how to determine this amount)
Fee: 346053
(Network fees, ~0.35 ALEO)
Let's say you are trying to burn a PNDO token amount N, you then need to determine what is the associated withdrawn pALEO amount: A. Let's understand how to compute A from N.
Open the following link: https://api.explorer.provable.com/v1/mainnet/program/token_registry.aleo/mapping/authorized_balances/3242288718229738787948769588602675310170924869859109695547161313477376112745field
B is the integer between balance:
and the following u128
, here 57062905199
.
Open the following link: https://api.explorer.provable.com/v1/mainnet/program/token_registry.aleo/mapping/registered_tokens/1751493913335802797273486270793650302076377624243810059080883537084141842601field
S is the integer between supply:
and the following u128
, here 57062905199
.
You can then obtain the pALEO amount A you will get for burning N PNDO tokens: