Skip to content

liquidity-pools-and-staking-annasudol created by GitHub Classroom

Notifications You must be signed in to change notification settings

Chainboard-Academy/liquidity-pools-and-staking

Repository files navigation

Liquidity Pools and Staking

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

  1. Minted ERC20 for 20
  2. Deposit WETH for 4
  3. Created liquidity pool 'WETH-ERC' ( 2 WETH, 8 ERC20)
  4. Added liquidity 8 ERC20, 2 WETH ...

ERC20 address

0xCD83fb6aE6881c7EE22B0428C2be55a487A2C854

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

WETH address

## deploying ERC20 contract
npx hardhat run scripts/deploy_weth.ts --network goerli
npx hardhat --network goerli verify [contract address]

total supply 4 ETH

0xE1E836fDB4D61DC05298F702Fdde128154c0158F

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

Liquidity token 0x06ba7fce84CC8D6ce1Fac9E504bF0922226CBA53

Created liquidity 'WETH-ERC20' with a ratio 1: 4

max Total supply: 16 ERC20, 4 WETH;

contract at goerli.etherscan.io total supply 8

Staking Rewards Token

0xabeF3182285b63276E1F14F3af3a5c000409004D

contract at goerli.etherscan.io Rewards supply: 20 Staking supply LP: 8

About

liquidity-pools-and-staking-annasudol created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published