Added record() function to tokenomics module functions

This commit is contained in:
Nathan Schneider
2021-12-25 18:14:38 -07:00
parent c017b80063
commit 12a49ab66d

View File

@ -93,16 +93,20 @@ function tokenomics.balance(org, token, user)
end end
function tokenomics.change_balance(org, token, user, amount) function tokenomics.change_balance(org, token, user, amount)
self.org:record("Changed token balance",self.slug)
end end
function tokenomics.transfer(org, token, sender, recipient, amount) function tokenomics.transfer(org, token, sender, recipient, amount)
-- use change_balance
end end
function tokenomics.treasury_transfer(org, token, recipient, amount) function tokenomics.treasury_transfer(org, token, recipient, amount)
-- use change_balance
end end
-- creates new tokens in the org treasury -- creates new tokens in the org treasury
function tokenomics.issue(org, token, amount) function tokenomics.issue(org, token, amount)
self.org:record("Issued tokes to treasury",self.slug)
end end
------------------------------------------ ------------------------------------------