-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rework linkdrop to support more functionality and reduce required price #12
Comments
Yes. That part has not changed. Also it is 64 blocks instead of 100 |
Ok, so here is suggestion how to address this issue:
If near/NEPs#164 gets accepted and implemented, then this logic is not needed as would be able to just limit access keys to 1 usage. Interface:
Storing a lookup map of <PublicKey, Drop>
Where |
It's possible to attach low gas amount, so the call will fail and we can't remove it within the call. Let the sender claim it back.Alternative is to decrease the allowance from If the call fails for some reason (or the link is lost), the original sender will be able to claim it back, so you don't need the worry about funds from being locked. This is fairly simple to implement |
What would happen if gas price goes up? User will not be able to execute such tx until gas prices lowers back? Claiming back by sender make sense for sure, but I don't understand how this solves the problem at hand. |
Figure out if we can now use 0.01N or something similar for access key budget here https://github.com/near/near-linkdrop/blob/master/src/lib.rs#L18
Previously it was this high due to how much transaction would prepay if it would take next 100 blocks of receipts with constant price increase. Is this still the case?
The text was updated successfully, but these errors were encountered: