archway-network / archway

Archway Network
https://archway.io
Other
72 stars 99 forks source link

feat(x/callback): Handle fees #518

Closed spoo-bar closed 9 months ago

spoo-bar commented 9 months ago

Handling fees in the following way for the following events

  1. CancelCallback transactionFee - Refund completely futureReservationFee - Send to FeeCollector blockReservationFee - Send to FeeCollector surplusFees - Refund completely

  2. 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

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3ccac44) 64.52% compared to head (27bf431) 64.52%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feat/callback-module #518 +/- ## ===================================================== Coverage 64.52% 64.52% ===================================================== Files 69 69 Lines 4068 4068 ===================================================== Hits 2625 2625 Misses 1314 1314 Partials 129 129 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.