-
Notifications
You must be signed in to change notification settings - Fork 58
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
1 parent
2049ad3
commit 1762828
Showing
25 changed files
with
479 additions
and
87 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
18 changes: 13 additions & 5 deletions
18
markets/perps-market/contracts/interfaces/ICollateralModule.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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.11 <0.9.0; | ||
|
||
/** | ||
* @title Module for setting max collateral distribution. | ||
*/ | ||
interface ICollateralModule { | ||
/** | ||
* @notice Gets fired when max collateral amount for synth is set by owner. | ||
* @param synthId Synth market id, 0 for snxUSD. | ||
* @param maxCollateralAmount max amount that was set for the synth | ||
* @notice Gets fired when max collateral amount for synth collateral for the system is set by owner. | ||
* @param synthMarketId Synth market id, 0 for snxUSD. | ||
* @param collateralAmount max amount that was set for the synth | ||
*/ | ||
event MaxCollateralSet(uint128 indexed synthId, uint256 maxCollateralAmount); | ||
event MaxCollateralSet(uint128 indexed synthMarketId, uint256 collateralAmount); | ||
|
||
function setMaxCollateralAmount(uint128 synthId, uint maxCollateralAmount) external; | ||
/** | ||
* @notice Set the max collateral amoutn via this function | ||
* @param synthMarketId Synth market id, 0 for snxUSD. | ||
* @param collateralAmount max amount that for the synth | ||
*/ | ||
function setMaxCollateralAmount(uint128 synthMarketId, uint collateralAmount) external; | ||
} |
Oops, something went wrong.