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: update cCOP pool reset frequency #230

Merged
merged 2 commits into from
Oct 24, 2024
Merged
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
7 changes: 1 addition & 6 deletions script/upgrades/cCOP/Config.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ library cCOPConfig {
* @dev Returns the configuration for the COPUSD rate feed.
*/
function COPUSD_RateFeedConfig() internal pure returns (Config.RateFeed memory rateFeedConfig) {
// TODO: Get confirmation for Roman that these are OK
// These are the exact same as the $PUSO rate feed config
rateFeedConfig.rateFeedID = Config.rateFeedID("relayed:COPUSD");
rateFeedConfig.medianDeltaBreaker0 = Config.MedianDeltaBreaker({
enabled: true,
Expand All @@ -59,15 +57,12 @@ library cCOPConfig {
function cCOPcUSD_PoolConfig(
Contracts.Cache storage contracts
) internal view returns (Config.Pool memory poolConfig) {
// TODO: Get confirmation from Roman that these are OK
// These were taken from the $PUSO pool and adjusted to the COP/USD exchange rate,
// which was 0.00023747 at the time of writing
poolConfig = Config.Pool({
asset0: contracts.celoRegistry("StableToken"),
asset1: contracts.deployed("StableTokenCOPProxy"),
isConstantSum: true,
spread: FixidityLib.newFixedFraction(3, 1000), // 0.3%, in line with current DT of chainlink feed
referenceRateResetFrequency: 5 minutes,
referenceRateResetFrequency: 6 minutes,
minimumReports: 1,
stablePoolResetSize: 10_000_000 * 1e18,
referenceRateFeedID: Config.rateFeedID("relayed:COPUSD"),
Expand Down
Loading