Skip to content

Instantly share code, notes, and snippets.

@tmuskal
Last active November 10, 2019 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmuskal/0f9526e9c6c998b200af5ad83672515b to your computer and use it in GitHub Desktop.
Save tmuskal/0f9526e9c6c998b200af5ad83672515b to your computer and use it in GitHub Desktop.
ImmunityToken
void ontransfer(...) {
/* Calls LiquidOracles to get unused CPU for this user */
auto idle_quota = get_user_idle_cpu(from);
auto memo = "thank you for keeping the chain healthy";
transfer(to, from, asset(idle_quota , TALBENI), memo);
transfer(to, from, amount, memo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment