Skip to content

Commit

Permalink
document the reason for the check
Browse files Browse the repository at this point in the history
  • Loading branch information
wjmelements committed Oct 23, 2024
1 parent 475de19 commit fd74a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ProtocolFees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ abstract contract ProtocolFees is IProtocolFees, Owned {
{
if (msg.sender != protocolFeeController) InvalidCaller.selector.revertWith();
if (!currency.isAddressZero() && CurrencyReserves.getSyncedCurrency() == currency) {
// prevent transfer between the sync and settle balanceOfs (native settle uses msg.value)
ProtocolFeeCurrencySynced.selector.revertWith();
}

Expand Down

0 comments on commit fd74a08

Please sign in to comment.