Added record() function to tokenomics module functions
This commit is contained in:
@ -93,16 +93,20 @@ function tokenomics.balance(org, token, user)
|
||||
end
|
||||
|
||||
function tokenomics.change_balance(org, token, user, amount)
|
||||
self.org:record("Changed token balance",self.slug)
|
||||
end
|
||||
|
||||
function tokenomics.transfer(org, token, sender, recipient, amount)
|
||||
-- use change_balance
|
||||
end
|
||||
|
||||
function tokenomics.treasury_transfer(org, token, recipient, amount)
|
||||
-- use change_balance
|
||||
end
|
||||
|
||||
-- creates new tokens in the org treasury
|
||||
function tokenomics.issue(org, token, amount)
|
||||
self.org:record("Issued tokes to treasury",self.slug)
|
||||
end
|
||||
|
||||
------------------------------------------
|
||||
|
Reference in New Issue
Block a user