Created liquidity pool on UniswapV2 'WETH-ERC' Created Staking rewards contract, where, "staking-unstacking" comes from LP contract, and Rewards from staking come from ERC20 contract
- Minted ERC20 for 20
- Deposit WETH for 4
- Created liquidity pool 'WETH-ERC' ( 2 WETH, 8 ERC20)
- Added liquidity 8 ERC20, 2 WETH ...
contract at goerli.etherscan.io total supply 20 ERC20 (where 8 tokens added to LP)
#tasks
npx hardhat supply --network goerli
npx hardhat balance --account [address] --network goerli
npx hardhat mint --account [address] --amount [value ]--network goerli
npx hardhat burn --account 0x80dD5aD6B8775c4E31C999cA278Ef4D035717872 --amount 10000000000000000001000 --network goerli
npx hardhat transfer --to [address] --amount [value] --network goerli
npx hardhat transferFrom --from [address] --to [address] --amount [value] --network goerli
npx hardhat allowance --account [ACCOUNT] --network goerli
npx hardhat decreaseAllowance --account [ACCOUNT] --amount [value]--network goerli
npx hardhat increaseAllowance --account [ACCOUNT] --amount [value]--network goerli
## deploying ERC20 contract
npx hardhat run scripts/deploy_weth.ts --network goerli
npx hardhat --network goerli verify [contract address]
total supply 4 ETH
contract at goerli.etherscan.io
##tasks
npx hardhat deposit --amount [value] --network goerli
npx hardhat deposit --amount 1 --network goerli
npx hardhat withdraw --amount [value] --network goerli
npx hardhat withdraw --amount 1 --network goerli
Created liquidity 'WETH-ERC20' with a ratio 1: 4
max Total supply: 16 ERC20, 4 WETH;
contract at goerli.etherscan.io total supply 8
contract at goerli.etherscan.io Rewards supply: 20 Staking supply LP: 8