How to Stake Flash V2 for more Flash V2
Published in
3 min readJul 22, 2021
Before we dive in, please note that this is a fairly technical process, and we do not recommend you proceed if you don’t feel comfortable engaging with the back-end of smart contracts. If you’re a crypto native and this doesn’t intimidate you, or if you’re up for the challenge of learning, then proceed to read on about how to stake Flash v2 for more Flash v2!
If you have any questions, feel free to ping @steve.eth in our Flashstake channel on Discord!
Step #1: Find the exact amount of Flash to stake as an input:
- Because the Flash token has 18 decimals, there must be 18 zeros after any whole number
- Example: If you want to stake 123 Flash then the total value text should be:123000000000000000000
Step #2: Find the Maximum duration:
- Read the Flash V2 contract: https://etherscan.io/address/0x15eb0c763581329c921c8398556ecff85cc48275#readContract
- Find the step “4. calculateMaxStakePeriod” and expand it
- In the _amountIn value, input your Flash value with 18 zeros per Step #1 (123000000000000000000)
- Click “query”
- The result will say something like “uint256 : 59506357” (note: this # will probably look different for you, depending on how much your staking and when). You want to keep this number only: 59506357
- Note: if you divide this number by 86400 seconds you will get total days for the stake: 59506357 / 86400 = 688.73 days
Step #3: Stake Flash for more Flash
- Write to the Flash V2 contract: https://etherscan.io/address/0x15eb0c763581329c921c8398556ecff85cc48275#writeContract
- Click “Connect to Web3” and log in with your wallet you want to use to initiate this transaction. The box should turn blue and say “connected” after you connect with your wallet.
- Find the “4. Stake” and expand it
- _amountIn = Step #1 value (123000000000000000000)
- _expiry = Step #2 value (59506357)
- _receiver = your Ethereum address that will receive Flash for this stake
- _data = “0x”
- Click “Write”. This will prompt you to confirm the gas price and initiate the transaction with your wallet.
- After confirming and submitting the transaction in the previous step, you should now see a “View your transaction” button that you can click to see the transaction you just created, on Etherscan.
That’s it, you’ve done it! Your are now a professional Flasher.