2
0
Эх сурвалжийг харах

Added record() function to tokenomics module functions

Nathan Schneider 2 жил өмнө
parent
commit
12a49ab66d

+ 4 - 0
modpol_core/modules/tokenomics.lua

@@ -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
 
 ------------------------------------------