-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/protocol/contracts-0.8/stability/interfaces/IFeeCurrencyAdapter.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity >=0.8.7 <0.8.20; | ||
|
||
interface IFeeCurrencyAdapter { | ||
function getAdaptedToken() external view returns (address); | ||
|
||
function digitDifference() external view returns (uint96); | ||
|
||
function debited() external view returns (uint256); | ||
|
||
function name() external view returns (string memory); | ||
|
||
function symbol() external view returns (string memory); | ||
|
||
function expectedDecimals() external view returns (uint8); | ||
|
||
function decimals() external view returns (uint8); | ||
|
||
function debitGasFees(address from, uint256 value) external; | ||
|
||
function creditGasFees( | ||
address refundRecipient, | ||
address tipRecipient, | ||
address _gatewayFeeRecipient, | ||
address baseFeeRecipient, | ||
uint256 refundAmount, | ||
uint256 tipAmount, | ||
uint256 _gatewayFeeAmount, | ||
uint256 baseFeeAmount | ||
) external; | ||
} |