- This smart contract is customized-contract of the rock3t-core-contracts that:
-
allow a user to stake LP tokens as
"early LP staking"
and get opportunity toearn rewards
(as incentive of "early LP staking") after general process of therock3t-core-contracts
( https://github.com/masaun/liquidVault-with-vesting#overview ) -
Staking LP also means
LP vesting
.- Once a user stake LP, they can not withdraw until the vesting period is passed. (Default vesting period are 6 months (=24 weeks) at the moment)
-
After vesting period is passed, a user can withdraw and receive rewards.
- Rewards is
DGVC
token. - Rewards are calculated every seconds during vesting period.
- Rewards is
-
(※ rock3t-core-contracts: https://github.com/degen-vc/rock3t-core-contracts )
- Workflow:
- ① A user sending ETH into the
LiquidVault (LiquidVaulWithVesting.sol)
and pooling it with R3T to create LP tokens, FeeApprover that calculates FOT, FeeDistributor that distributes fees on LiquidVault. - ② LiquidVault allows users to send ETH and pool it with R3T, while certain percentage of fee that is calculated using buy pressure formula is swapped on Uniswap market. Minted LP tokens are locked in LiquidVault for a period that is calculated based on the system health. ③ A user claim LP tokens and receive them. ④ At the same time, certain percentage of LP tokens is donated.
- ⑤ A user stake LP tokens (=
Vesting of LP tokens
. Default vesting period is 24 weeks) - ⑥ After vesting period is passed, a user can withdraw and receive
reward tokens
(=DGVC tokens
)
- ① A user sending ETH into the
- Version for following the
Degen.VC
smart contract- Solidity (Solc): v0.7.1
- Truffle: v5.1.60
- web3.js: v1.2.9
- openzeppelin-solidity: v3.2.0
- ganache-cli: v6.9.1 (ganache-core: 2.10.2)
- Install npm modules in the root directory
$ npm install
- 1: Start ganache-cli
$ npm run ganache
- 2: Execute test of the LiquidVaultWithVesting contract
npm run test:LiquidVaultWithVesting
- Degen.VC
- Website: https://www.degen.vc/
- Github: https://github.com/degen-vc
- Rock3T
- rock3t-core-contracts: https://github.com/degen-vc/rock3t-core-contracts
- Structure: https://medium.com/rock3t/breaking-down-rock3ts-economic-levers-1dd32b04e9e1
- Liquid Vault Gitcoin Hackathon Prizes
- Best new implementation of a Liquid Vault
https://gitcoin.co/issue/degen-vc/liquid-vault/1/100025592
- Best new implementation of a Liquid Vault