Conversation
Codecov Report
@@ Coverage Diff @@
## master #635 +/- ##
==========================================
- Coverage 52.32% 47.67% -4.65%
==========================================
Files 210 199 -11
Lines 25080 21065 -4015
Branches 486 486
==========================================
- Hits 13122 10042 -3080
+ Misses 10635 9699 -936
- Partials 1323 1324 +1 |
|
I'm not sure we want to move excess deposit to the fee refund address. I thought the idea was that the deposit would go to the L2 address. |
well that's the behaviour in classic and also documented
or do you mean we should refund |
|
discussed offline, I think the conclusion is to refund |
Co-authored-by: gzeon <hng@offchainlabs.com>
When we have _gasPriceBid higher than actual L2 gas price, or otherwise have
deposit > l2callvalue + maxSubmissionCost + gascost, our refund is insufficient because we only refundgasPrice * gasLeft, even ifgasPrice < _gasPriceBidnitro/arbos/tx_processor.go
Line 335 in 69fd4e3
We should refund excess gas provided from L1, i.e.
max(deposit - l2callvalue - maxSubmissionCost - gascost, 0)The retryable can use existing fund in L2
fromaccount to provide gas, but the refund will be bounded byexcessDeposit - gascost.