-
Notifications
You must be signed in to change notification settings - Fork 0
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
draft smart contract #24
Conversation
tolerance = 10; | ||
} | ||
// @ts-ignore | ||
// TODO: check overflow ? (or use safeMath) |
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.
TODO
Context.currentThread(), | ||
40000000, // TODO: calibrate max gas | ||
0, | ||
0, // TODO: calibrate coins depending on the presence of the recipient balance in the token storage |
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.
TODO
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.
we will do it with massalabs/massa-standards#162
I think one missing thing is to get schedueles by recipient (will be usefull for admin dashboard). |
amount, | ||
interval, | ||
occurrences, | ||
occurrences, |
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.
remaining
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.
at the creation, it's the same value for remaining
// Autonomous smart contract feature | ||
|
||
// The function asyncSendFT will be trigger by autonomous smart contract feature. | ||
export function asyncSendFT(schedule: Schedule): void { |
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.
Should we check that only this contract can call this function? It is exported in main so it callable by anyone.
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.
yes, I'll push in another PR
No description provided.