halo-rewards's People
Forkers
xave-financehalo-rewards's Issues
Test script with time span for HaloChest
Inside describe - "Earn vesting rewards by staking HALO inside HaloChest"
It - I can claim correct xHalo after x months.
add missing unit test
add test to prove earning mechanism works at https://github.com/0xRS/halo-rewards/blob/61e706419df6adeb12cd8cf43dd7ceb3d1a60e0a/hardhat/test/reward-test.js#L369
“if i stake HALO in HaloChest and other HALO token holders to deposit HALO and then I withdraw HALO, i will be able to withdraw more HALO then originally deposited”
Emit events for earning HALO
A way to track all user earned HALO (unclaimed and claimed). Thinking of tracking using events or stored internally but happy to hear any other suggestions.
Change event name to WithdrawLPTokens
On (https://github.com/0xRS/halo-rewards/blob/500a0e42b93e54c7cd7ae21efd77a9efaa2b248d/contracts/Rewards.sol#L20)
event should be named WithdrawLPTokens
Emit Events for Updating Rewards Pool (Minter and AMM)
Fix Typo Error
Change variable -> ammLpUserInfo to minterLpUserInfo in
(https://github.com/0xRS/halo-rewards/blob/main/contracts/Rewards.sol#L266)
Implement Vesting
Refer to this section of the rewards contract specs.
(https://docs.google.com/document/d/1xF8kiopKTd_KLhmJtAB_H6KpLeqo1_QDw6F11Bb0uQQ/edit?disco=AAAAH9UK7yA)
Rename removeLp to removeAmmLp
For consistency, rename removeLp to removeAmmLp
(https://github.com/0xRS/halo-rewards/blob/main/contracts/Rewards.sol#L349)
Question: Is there a way to know how much tokens are still vested and how much can be withdrawn immediately?
Any way to know how much tokens we can withdraw right away and how many is still vested?
Additional view function
View function to get data from UserInfo so we can get the total amount of collateral the user. Something like getTotalUserLpTokenAmount() ?
Add missing unit test for claiming rewards
"If I claim my HALO, I get my staked HALO plus earned HALO"
Update README
Documentation on how to deploy the contracts locally, such as installing deps and other prereqs before we can run the unit tests.
Add a function to withdraw the outstanding rewards.
Based from this comment:
Also 1 currently known issue: there's no function to just withdraw the outstanding rewards. You need deposit or redeem to automatically claim the rewards. I'll add a function to withdraw the outstanding rewards.
Add Code Comments
Add comments on critical areas of the code, to help us better understand (e.g. calcReward(), updateMinterRewardPool(), updateAmmRewardPool()).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.