kowala-tech / kcoin

A stable cryptocurrency that algorithmically targets $1 USD using the Kowala Protocol
https://www.kowala.tech/
Other
18 stars 16 forks source link

feature/stability fee #764

Open rgeraldes opened 5 years ago

rgeraldes commented 5 years ago

Closes #36

yourheropaul commented 5 years ago

This is definitely going to need e2e tests!

rgeraldes commented 5 years ago

TODO: add documentation For future reference: "for contract calls the stability fee is calculated based on the compute limit because we don't know the final computation effort until we run the code. As soon as we know it, we refund the user if there were compute units left. In short, the stability fee is calculated again and we refund the initial stability fee (max fee) minus the final stability fee, so for contracts the user pays the "max" stability fee upfront and for normal transactions the stability fee payed upfront is the final one."