Skip to content

Token agent for subscriptions and delegated token transfers

Notifications You must be signed in to change notification settings

atellix/token-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Token Agent

About This Program

The Token Agent program manages recurring subscriptions (a.k.a. "rebilling") and delegation of tokens to specific accounts.

Note: This program requires the "userAgent" account for each user be registered to the SPL token as the delegate in order to facilitate the later transfer of tokens on the user's behalf. For this reason, we recommend that other programs leave this setting in place. This Token Agent program provides a way to re-delegate token allowances to any number of accounts via a "TokenAllowance".

Recurring Subscriptions Features:

  • Automatic token swapping (pay in one token, merchant gets a different token swapped at current prices).
  • No double-billing
  • Max budget
  • Dynamic payment amount
  • Ability to update subscription parameters
  • User able to cancel subscription(s) directly

Features:

  • Recurring subscriptions
  • Delegate allowances to any number of accounts

This contract also adds the ability to create "TokenAllowance" accounts. The allowances enable a specific number of tokens to be delegated to be transfer later by a specific 3rd-party user. This program also include more fined-grained access controls than the SPL Token program, including time-based access, and limiting the recipient to a pre-defined account.

Built With

License

Distributed under the MIT License.

About

Token agent for subscriptions and delegated token transfers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published