Open rgeraldes opened 5 years ago
This is definitely going to need e2e tests!
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."
Closes #36