-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split balance manager from withdrawable features
- Loading branch information
1 parent
31bc502
commit 8dbe7c7
Showing
27 changed files
with
80 additions
and
635 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
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
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
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
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
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
/// @title IFeesManager Interface | ||
/// @notice This interface defines functions for managing and retrieving treasury fees associated with different currencies. | ||
/// @dev This interface is intended to be implemented by contracts that manage platform or treasury fees for multiple currencies. | ||
interface IFeesManager { | ||
|
||
/// @notice Sets a new treasury fee. | ||
/// @param newTreasuryFee The new treasury fee %. | ||
/// @param currency The currency to associate fees with. Use address(0) for the native coin. | ||
/// @notice Sets a new treasury fee for a specific currency. | ||
/// @param newTreasuryFee The new treasury fee percentage (e.g., 5 for 5%). | ||
/// @param currency The address of the currency to associate fees with. Use address(0) for the native coin. | ||
/// @notice Only the owner can call this function. | ||
function setFees(uint256 newTreasuryFee, address currency) external; | ||
|
||
/// @notice Returns the current treasury fee %. | ||
/// @param currency The address of the currency for which to retrieve the fees fee. | ||
/// @return The treasury fee. | ||
/// @notice Returns the current treasury fee percentage for a specific currency. | ||
/// @param currency The address of the currency for which to retrieve the treasury fee. Use address(0) for the native coin. | ||
/// @return The treasury fee percentage. | ||
function getFees(address currency) external view returns (uint256); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.