added demurrage calculation

This commit is contained in:
Will Ruddick 2021-07-16 12:27:54 +00:00
parent 3559da0659
commit ddbf23c008
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ Enabeling users to query the info for a particular token. e.g. after choosing it
1. Token Info:
1. name,
1. symbol
1. holding fee (% aggregated to monthly - calculation needed based on data from contract),
1. holding fee (% aggregated to monthly - calculation needed based on data from contract), =(1-(1-Demurage)^43800) (43800 munites ina months) ... if demurrage is 0.00000046124891913883 ... then the monthly demurage here is =(1-(1-0.00000046124891913883)^43800)=0.02 ... 2% ...
1. note that to calculate a minute by minute demurrage based on a monthly target demurrage of 2% =1- (1-0.02)^(1/43800
) = 0.00000046124891913883
1. Stats:
1. total supply, (from contract)
1. Circulation (total minus the supply of balance of the issuer) (from contract and balance of sink account)