-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove duplicate GLOBAL_MIN_PRICE_RATIO
- Loading branch information
1 parent
8c06048
commit bc7d420
Showing
6 changed files
with
111 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
|
||
pragma solidity ^0.8.18; | ||
|
||
import "../../interfaces/IStakingPool.sol"; | ||
import "../../interfaces/ICover.sol"; | ||
import "../../interfaces/IStakingProducts.sol"; | ||
import "../../interfaces/IStakingPoolFactory.sol"; | ||
import "../../interfaces/ICoverProducts.sol"; | ||
|
||
contract CoverProductsMockCover is ICover { | ||
uint public constant GLOBAL_MIN_PRICE_RATIO = 100; // 1% | ||
|
||
function coverData(uint /* coverId */) external pure returns (CoverData memory) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function coverDataCount() external pure returns (uint) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function coverSegmentsCount(uint /* coverId */ ) external pure returns (uint) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function coverSegments(uint /* coverId */ ) external pure returns (CoverSegment[] memory) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function coverSegmentWithRemainingAmount( | ||
uint /* coverId */, | ||
uint /* segmentId */ | ||
) external pure returns (CoverSegment memory) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function totalActiveCoverInAsset(uint /* coverAsset */) external pure returns (uint) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function globalCapacityRatio() external pure returns (uint) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function globalRewardsRatio() external pure returns (uint) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function getPriceAndCapacityRatios(uint[] calldata /* productIds */) external pure returns ( | ||
uint /* _globalCapacityRatio */, | ||
uint /* _globalMinPriceRatio */, | ||
uint[] memory /* _initialPriceRatios */, | ||
uint[] memory /* _capacityReductionRatios */ | ||
) { | ||
revert("Unsupported"); | ||
} | ||
|
||
/* === MUTATIVE FUNCTIONS ==== */ | ||
|
||
function addLegacyCover( | ||
uint /* productId */, | ||
uint /* coverAsset */, | ||
uint /* amount */, | ||
uint /* start */, | ||
uint /* period */, | ||
address /* newOwner */ | ||
) external pure returns (uint /* coverId */) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function buyCover( | ||
BuyCoverParams calldata /* params */, | ||
PoolAllocationRequest[] calldata /* coverChunkRequests */ | ||
) external payable returns (uint /* coverId */ ) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function burnStake( | ||
uint /* coverId */, | ||
uint /* segmentId */, | ||
uint /* amount */ | ||
) external pure returns (address /* coverOwner */) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function coverNFT() external pure returns (ICoverNFT) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function stakingNFT() external pure returns (IStakingNFT) { | ||
revert("Unsupported"); | ||
} | ||
|
||
function stakingPoolFactory() external pure returns (IStakingPoolFactory) { | ||
revert("Unsupported"); | ||
} | ||
} |
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