Skip to content

Commit

Permalink
Merge pull request #38 from sanbir/audit-3-fix
Browse files Browse the repository at this point in the history
fix M8 for all
  • Loading branch information
sanbir authored Aug 1, 2023
2 parents ee36451 + 781ba8d commit 58bb08d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/feeDistributor/ContractWcFeeDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ contract ContractWcFeeDistributor is BaseFeeDistributor {
uint256 balance = address(this).balance;

if (balance > 0) { // only happens if at least 1 party reverted in their receive
bool success = P2pAddressLib._sendValue(_to, balance);
bool success = P2pAddressLib._sendValueWithoutGasRestrictions(_to, balance);

if (success) {
emit FeeDistributor__EtherRecovered(_to, balance);
Expand Down
2 changes: 1 addition & 1 deletion contracts/feeDistributor/ElOnlyFeeDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ contract ElOnlyFeeDistributor is BaseFeeDistributor {
uint256 balance = address(this).balance;

if (balance > 0) { // only happens if at least 1 party reverted in their receive
bool success = P2pAddressLib._sendValue(_to, balance);
bool success = P2pAddressLib._sendValueWithoutGasRestrictions(_to, balance);

if (success) {
emit FeeDistributor__EtherRecovered(_to, balance);
Expand Down

0 comments on commit 58bb08d

Please sign in to comment.