Stake, Boost and Delegate
This guide provides a way to: stake your vet, boost the maturity period, and delegate to a validator in a single transaction without using VeWorld mobile app or the StarGate dApp.
Guide
Install VeWorld extension in the browser
The extension is a tool that allows you to manage a cryptocurrency wallet and use it to interact with dApps.
Install it from here.
Open the Inspector website
Inspector is a website that allows you to interact with smart contracts. You can both visit the online version or fork the public repo and run it locally.
Add the contracts you will interact with
Once you open the Inspector website you will find an empty page asking you to add contracts you want to interact with. To reach our goal we will need to add 2 contracts: VTHO and StarGate.
Add VTHO
To do it, just click the "New +" button, then in the "Name" input field write "VTHO", you will see an autocomplete dropdown suggesting you to use the pre-uploaded contract. Click on it and it will prefill the address and ABI fields automatically. Then click "Add" again to save it.
Add StarGate
Now do the same, but to add the StarGate contract. Click "New +", write "Stargate" and you will see 2 suggestions: "StarGate NFT" and "StarGate". Click on "StarGate", then click "Add" again.
Check that the addresses are the official ones you see in the Contracts page.
Find the NFT level you want to stake for
Go to the NFT Tiers section and find the id of the level you want to stake for, eg: Thunder has level ID 2.
Find the validator address you want to delegate to
You can find this information by searching the validator on StarGate app. Once you find the validator you must copy its address, eg: 0x244306eea413a1b94d156c93dc679b2b1e18bebf
Approve the StarGateNFT contract to move VTHO from your wallet
StarGateNFT contract to move VTHO from your walletIn Inspector open the VTHO contract, go to the "Write" section, and find the approve function. Fill the form with the correct data:
caller: the address of your wallet, the one you will use to stake
_value: the maximum amount the contract will be able to transfer, in wei; set this to the boost price (that you can find in the NFT Tiers section, eg: for Thunder NFT it is 206.100,00 VTHO, which is 206100000000000000000000 converted to WEI)
Click "Excute": this will open your wallet and ask you to sign the transaction. Once done wait that the transaction is successful.
Call stakeAndDelegate in the StarGate contract
StarGate contractNow it's time to stake, boost and delegate. In Inspector click the StarGate contract, then go to the "Write" section and search for the stakeAndDelegate function.
Fill the form with the right information, based on the NFT level you want to stake for. Eg, for an NFT of level Thunder we will fill with the following information:
Caller: the address of the wallet you will use to stake
_levelId: the level id of the NFT, in our example it is "2"
_validatorId: the address of the validator we want to delegate to, in our example we picked a random one
0x244306eea413a1b94d156c93dc679b2b1e18bebfvalue: add here how much VET do you want to send when doing this transaction, it must be EXACTLY the price needed for the stake; in our example is "5000000" VET.
Click "Execute", confirm with the VeWorld extension, and wait for the transaction to be successful.
That's it!
You staked your VET, got an NFT representing your staking position, and delegated to a validator. Once per validator cycle you will be able to claim all the generated rewards.
You delegation may still be in a pending state, depending on the current status and cycle of the validator. The delegation will become ative once the validator will enter in a new cycle.
Tutorials
Install VeWorld extension
Setup Inspector
Approve VTHO
Stake, Boost and Delegate
Last updated
Was this helpful?

