STAKER PARADISE SMART CONTRACT SIDE / ADMIN DASHBOARD
This is the blockchain side of the project staker paradise, and the admin dashboard.
! important : all the information about the project you find it on the repo bellow :
The frontend repo :
Task to run it on local hardhat node / Testnet:
- npm install
- replace the
examplehardhat.config.js
byhardhat.config.js
- run the command
npx hardhat run scripts/deploy --network localhost
PS : you should deploy the smart contracts one by one just by removing comments. - the
StakerParadise
contract take theSPT
contract address as parametre so don't forget it. - Done ! now you deployed all the contracts to your local node
Aadmin Dashboard
The admin dashboard until now it's just a command line. In the interacting.js
file you will find
a lot of functions
getFreeToken1
=> give you 1000 tn1 to start stakingapprove
=> the admin run it beforecreateInvestmentPool
to allow the smart contract use tokenscreateInvestmentPool
=> take 6 para the tokenAddress,totalReward,deposit time , mini deposit,max supply, staking time.getLiveIVP1
=> return all an array of all the live IVPsgetEndIVP
=> return all an array of all the end IVPsapprove_before_stake1
=> before stake you need to approve.stake
=> the stake function take 2 para IVP id , amount to stake.getUserInvestment
=> return an array of IVPs which the user invested on it.