🦸 GIT Clone The Repo
🦸 Cd to ALC_STAKING_DAPP
🦸 yarn install
🦸 Open Three Different terminals And Type below commands in three seprate terminals
🦸 yarn start
🦸 yarn chain
🦸 yarn Deploy
👀 Deposit some ETH from faucet in lower left corner to your wallet
👀 Copy Staker Contract Address And Deposit Good amount of ETH to avoid "RIP Withdrawl" Bcz of low funds and also because we are using exponential interest calculation
👀 Stake Some Eth "I Recommend 0.1 Eth"
👀 From Debug Contract Kill some time and after the withdrawl time is finished and claim period is started click withdraw
👀 You will see the rewards get added to your wallet address
👀 Now click Kill time again and finish the claim period Time
👀 After that click on Execute to transfer the staker contract balance to external contract
👀 Copy the staker Contract address and go to debug contract Tab then in the external contract functions you will see sendTrx function paste in the stakerContractAddress and press enter you will see the funds back in your contract.
👀 Now Click resetContract function in Debug Contracts Tab of StakerContract
👀 You will see time and everything is set back to a state from which you started and you can Re-perform staking and get rewards And You can Keep Doing this as much as you want.