Skip to content

Instantly share code, notes, and snippets.

@tmuskal tmuskal/ImmunityToken.cpp
Last active Nov 10, 2019

What would you like to do?
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
You can’t perform that action at this time.