Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mtfeeratemodel interface #17

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contracts/GasSavingPool/impl/GSPStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ contract GSPStorage is ReentrancyGuard {
uint256 public _MT_FEE_BASE_;
// _MT_FEE_QUOTE_ represents the mt fee in quote token
uint256 public _MT_FEE_QUOTE_;
// _MT_FEE_RATE_MODEL_ is useless, just for compatible with old version pool
address public _MT_FEE_RATE_MODEL_ = address(0);

// ============ Helper Functions ============

Expand Down
2 changes: 2 additions & 0 deletions contracts/GasSavingPool/intf/IGSP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ interface IGSP {

function _I_() external view returns (uint256);

function _MT_FEE_RATE_MODEL_() external view returns (address); // Useless, just for compatibility

function getVaultReserve() external view returns (uint256 baseReserve, uint256 quoteReserve);

function getUserFeeRate(address user) external view returns (uint256 lpFeeRate, uint256 mtFeeRate);
Expand Down
Loading