Last active
November 10, 2019 11:18
-
-
Save tmuskal/0f9526e9c6c998b200af5ad83672515b to your computer and use it in GitHub Desktop.
ImmunityToken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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