Added record() function to tokenomics module functions
This commit is contained in:
		| @@ -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 | ||||||
|  |  | ||||||
| ------------------------------------------ | ------------------------------------------ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user