Skip to content

Commit

Permalink
Change FeeManagerNoNative to use virtual functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ad0ll committed Apr 30, 2024
1 parent 4d46bd4 commit 9305f31
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 396 deletions.
4 changes: 2 additions & 2 deletions contracts/src/v0.8/llo-feeds/FeeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ contract FeeManager is IFeeManager, ConfirmedOwner, TypeAndVersionInterface {
bytes calldata payload,
bytes calldata parameterPayload,
address subscriber
) external payable override onlyProxy {
) external virtual payable override onlyProxy {
(Common.Asset memory fee, Common.Asset memory reward, uint256 appliedDiscount) = _processFee(
payload,
parameterPayload,
Expand All @@ -200,7 +200,7 @@ contract FeeManager is IFeeManager, ConfirmedOwner, TypeAndVersionInterface {
bytes[] calldata payloads,
bytes calldata parameterPayload,
address subscriber
) external payable override onlyProxy {
) external virtual payable override onlyProxy {
FeeAndReward[] memory feesAndRewards = new IFeeManager.FeeAndReward[](payloads.length);

//keep track of the number of fees to prevent over initialising the FeePayment array within _convertToLinkAndNativeFees
Expand Down
Loading

0 comments on commit 9305f31

Please sign in to comment.