-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airdrop | minor tweaks #138
Conversation
let messages = vec![send_msg( | ||
dump_address, send_total, None, None, | ||
1, config.airdrop_snip20.code_hash, | ||
config.airdrop_snip20.address)?]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is just hard-coded like that can we just initialize it in the HandleResponse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup we can
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 76ff676
Added a brute decay where the unclaimed amount gets dumped into the
dump_address
onceend_date
is reached.Replaced minting items with sending, the contract will now have to be funded before it can start distributing rewards.
Fixed potential issue regarding token distribution when handling certain amounts with certain task percentages; token division will sometimes create very little uToken to not be claimed, to combat this when a user claims and its total percentage achieved is 100% then we just return the current claimed amount subtracted by the total rewarded amount.
Closes #128, Closes #129, Closes #135