Skip to content
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

Added RecurringPayment contract example #140

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

kosecki123
Copy link
Contributor

Trivial implementation for recurring payment using EAC.

This is not production ready at any means. It's mean to present the design pattern that can be used with EAC.

);

emit PaymentScheduled(currentScheduledTransaction, recipient, paymentValue);
}
Copy link
Member

Choose a reason for hiding this comment

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

My suggestion would be to add a withdraw() function to pull the rest of the funds out of this contract by owner. This would be in the case that the owner is done with the recurring payment service, cancels the next call to the contract, and takes all of their funds out. Not need for this basic example, but something to include to encourage future developers to think about it.

Choose a reason for hiding this comment

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

I would also consider adding in a cancel function which is relevant to many low hanging use cases.

@kosecki123 kosecki123 merged commit 2e0471e into master Apr 23, 2018
@kosecki123 kosecki123 deleted the feature/recurring-payment-example branch April 23, 2018 14:03
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.

None yet

3 participants