This is a smart contract that enable a user to farm yield by staking LP tokens into a NFT pool. (on BSC testnet)
$ npm install
.env
to the root directory..env.example
into your .env
(Then, please input your information of wallets, private keys, etc... by following code of .env.example
)
https://github.com/masaun/NFT-yield-farming/blob/main/.env.example
$ npm run compile:bsc-testnet
⑤ Script
below instead of this test.$ npm run test:nft-yield-farming_bsc-testnet
($ truffle test ./test/test-bsc/NFTYieldFarmingOnBSC.test.js --network bsc_testnet)
truffle exec
command)$ npm run script:nft-yield-farming_bsc-testnet
($ truffle exec ./scripts/script-bsc/NFTYieldFarmingOnBSC.script.js --network bsc_testnet)
(※ Note: In advance, please check whether your deployer' wallet address on BSC testnet has enough BNB balance or not)
BSC RPC Endpoints
to change by referencing the list below
https://docs.binance.org/smart-chain/developer/rpc.html
↓BSC RPC Endpoints
for 2 files below.