Skip to content

sidechain distribution contract#2

Open
gfe3wo9yt8 wants to merge 3 commits intomainfrom
sidechain_distribution
Open

sidechain distribution contract#2
gfe3wo9yt8 wants to merge 3 commits intomainfrom
sidechain_distribution

Conversation

@gfe3wo9yt8
Copy link

No description provided.

@gfe3wo9yt8 gfe3wo9yt8 requested a review from Eenae September 18, 2022 13:15
@gfe3wo9yt8
Copy link
Author

gfe3wo9yt8 commented Sep 26, 2022

@Eenae fixed, added deploy script and new method for checking available reward (sorry, didn't think about it right away)

@gfe3wo9yt8 gfe3wo9yt8 requested a review from Eenae September 26, 2022 19:13
function withdrawReward(IERC20[] calldata tokens_) public {
function availableReward(address user_, IERC20 token_) public view returns (uint) {
uint userBalance = balanceOf[user_];
if (userBalance == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, zero should be returned also during the snapshot population, since rewards may jump misleadingly during that process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants