Skip to content

Instantly share code, notes, and snippets.

@KolevDarko
Last active August 17, 2022 20:53
Show Gist options
  • Save KolevDarko/a7b455df4575dd8bcafd9d8e055ed29f to your computer and use it in GitHub Desktop.
Save KolevDarko/a7b455df4575dd8bcafd9d8e055ed29f to your computer and use it in GitHub Desktop.
Subscription Mgr 1
contract SubscriptionManager {
struct Subscription {
address payer;
address receiver;
uint256 amount;
address token;
uint256 payoutPeriod;
uint256 lastPayout;
bool active;
}
mapping(uint256 => Subscription) public subscriptions;
uint256 public subscriptionCounter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment