Handle fees in the following way for the following events
RequestCallback
When a callback is being registered, calculate the appropriate futureReservationFee, blockReservationFee, transactionFee and ensure that the amount sent in the tx matches the expected amount. Any surplus is stored as surplusFees. Send all the tokens to the module account.
CancelCallback
transactionFee - Refund completely
futureReservationFee - Send to FeeCollector
blockReservationFee - Send to FeeCollector
surplusFees - Refund completely
ExecuteCallback
transactionFee - Calculate the amount of gas consumed and the total tx fees for that amount of gas. If the tx fees is lesser than what was paid, refund the rest to the address who reserved the callback. Send the tx fees to fee_collector.
futureReservationFee - Send to FeeCollector
blockReservationFee - Send to FeeCollector
surplusFees - Send to FeeCollector
Handle fees in the following way for the following events
RequestCallback When a callback is being registered, calculate the appropriate
futureReservationFee
,blockReservationFee
,transactionFee
and ensure that the amount sent in the tx matches the expected amount. Any surplus is stored assurplusFees
. Send all the tokens to the module account.CancelCallback
transactionFee
- Refund completelyfutureReservationFee
- Send to FeeCollectorblockReservationFee
- Send to FeeCollectorsurplusFees
- Refund completelyExecuteCallback
transactionFee
- Calculate the amount of gas consumed and the total tx fees for that amount of gas. If the tx fees is lesser than what was paid, refund the rest to the address who reserved the callback. Send the tx fees to fee_collector.futureReservationFee
- Send to FeeCollectorblockReservationFee
- Send to FeeCollectorsurplusFees
- Send to FeeCollector