Skip to content

Commit a0177da

Browse files
authored
Merge pull request #433 from rsksmart/fix/FLY-2216-clean
fix: update PegIn refund condition and RegisterPegIn tests
2 parents 9ecf645 + 9a0d876 commit a0177da

File tree

2 files changed

+190
-167
lines changed

2 files changed

+190
-167
lines changed

src/PegInContract.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ contract PegInContract is
430430
) private {
431431
uint refundAmount = transferredAmount;
432432

433-
if (quote.callOnRegister && refundAmount > quote.value - 1) {
433+
if (quote.callOnRegister && refundAmount >= quote.value) { // solhint-disable-line gas-strict-inequalities
434434
(bool callSuccess,) = quote.contractAddress.call{
435435
gas: quote.gasLimit,
436436
value: quote.value

0 commit comments

Comments
 (0)