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

Phecda relese v2.96.1 migration contract #2162

Merged
merged 103 commits into from
Oct 23, 2023
Merged

Conversation

leomassazza
Copy link
Contributor

No description provided.

barrasso and others added 30 commits December 20, 2022 13:06
Bumps [undici](https://github.com/nodejs/undici) from 5.18.0 to 5.20.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.18.0...v5.20.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: meb <[email protected]>
Synthetix Team and others added 22 commits June 30, 2023 13:34
* SCCP-293 (#2076)

As part of SCCP-293:
- LPM can only increase by 25% until reaches target
- LBR can only increase by 10% until it reaches targets
- skewScale can only increase by 10% until reaches target

* SIP-298 - Add new markets (#2075)

* Set SIP-298 markets as resumed (already on-chain) (#2080)

* Set markets as resumed (already on-chain)

* fix test

* SIP-2014: New PerpsV2 Markets (#2082)

* set markets for SIP-2014 and prepare SIP-2015

* Add missing asset

* use CL decimals instead of hardcoded 8 decimals

* Add SIP-2015 markets (#2084)

* Add SIP-2015 markets

* Update perpsv2-markets.json (#2085)

---------

Co-authored-by: kaleb <[email protected]>

* Update Perp Parameters & set Paused to False (#2087)

* Update perpsv2-markets.json - optimism-goerli (#2083)

* fix(chainMapping): fix typos in chain mappings (#1959)

* Bump webpack from 5.75.0 to 5.76.0 (#2050)

Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: meb <[email protected]>

* Fix CI Test failing due to fork limitation (#2090)

* Update Perps V2 Market Settings - Skew Scale (#2088)

* Update perpsv2-markets.json (#2091)

* Update SCCP-293/2005 (#2092)

* implements sccp-2009 (#2094)

updates minAge to 4 and magAge to 60 seconds - post-bedrock changes

* Implement SIP-2021 (stETH) (#2095)

* Add missing markets to goerli (#2096)

* Add missing markets to goerli

* update goerli values with optimism ones

* SCCP-2012-2014-2015 (#2101)

* Update perpsv2-markets.json

* Update perpsv2-markets.json

* update goerli parameters

* Configure sSTETHPERP on Goerli-ovm (#2104)

* Configure sSTETHPERP on Goerli-ovm

* fix range in test

* Update perps v2 config (#2109)

* fix test (updated config out of range)

* Update on mainnet json

Incorporates
- SCCP-2016
- SCCP-2017
- SCCP-2018
- SCCP-2019
- SCCP-2020
- SCCP-2021
- SCCP-2022

* update to goerli json

* lint

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* update as per sccp (#2112)

* update as per 2024 (#2113)

Co-authored-by: Leonardo Massazza <[email protected]>

* update json (#2114)

* update sccp-2026-2027 (#2117)

* update address (#2111)

* Add new markets (SIP-2009/23/24/25/26/27) (#2110)

* Add new markets (SIP-2009/23/24/25)

* Update Parameters + Include SIP 2026 & 2027 (#2116)

* Update Parameters + Include SIP 2026 & 2027

* update default min age to 2 seconds

* fix feeds (#2118)

* add missing stETH info

* fix release name

---------

Co-authored-by: kaleb <[email protected]>

* Goerli-ovm artifacts

* latest

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kaleb <[email protected]>
Co-authored-by: meb <[email protected]>
Co-authored-by: Will Cory <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* SCCP-293 (#2076)

As part of SCCP-293:
- LPM can only increase by 25% until reaches target
- LBR can only increase by 10% until it reaches targets
- skewScale can only increase by 10% until reaches target

* SIP-298 - Add new markets (#2075)

* Set SIP-298 markets as resumed (already on-chain) (#2080)

* Set markets as resumed (already on-chain)

* fix test

* SIP-2014: New PerpsV2 Markets (#2082)

* set markets for SIP-2014 and prepare SIP-2015

* Add missing asset

* use CL decimals instead of hardcoded 8 decimals

* Add SIP-2015 markets (#2084)

* Add SIP-2015 markets

* Update perpsv2-markets.json (#2085)

---------

Co-authored-by: kaleb <[email protected]>

* Update Perp Parameters & set Paused to False (#2087)

* Update perpsv2-markets.json - optimism-goerli (#2083)

* fix(chainMapping): fix typos in chain mappings (#1959)

* Bump webpack from 5.75.0 to 5.76.0 (#2050)

Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: meb <[email protected]>

* Fix CI Test failing due to fork limitation (#2090)

* Update Perps V2 Market Settings - Skew Scale (#2088)

* Update perpsv2-markets.json (#2091)

* Update SCCP-293/2005 (#2092)

* implements sccp-2009 (#2094)

updates minAge to 4 and magAge to 60 seconds - post-bedrock changes

* Implement SIP-2021 (stETH) (#2095)

* Add missing markets to goerli (#2096)

* Add missing markets to goerli

* update goerli values with optimism ones

* SCCP-2012-2014-2015 (#2101)

* Update perpsv2-markets.json

* Update perpsv2-markets.json

* update goerli parameters

* Configure sSTETHPERP on Goerli-ovm (#2104)

* Configure sSTETHPERP on Goerli-ovm

* fix range in test

* Update perps v2 config (#2109)

* fix test (updated config out of range)

* Update on mainnet json

Incorporates
- SCCP-2016
- SCCP-2017
- SCCP-2018
- SCCP-2019
- SCCP-2020
- SCCP-2021
- SCCP-2022

* update to goerli json

* lint

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* update as per sccp (#2112)

* update as per 2024 (#2113)

Co-authored-by: Leonardo Massazza <[email protected]>

* update json (#2114)

* update sccp-2026-2027 (#2117)

* update address (#2111)

* Add new markets (SIP-2009/23/24/25/26/27) (#2110)

* Add new markets (SIP-2009/23/24/25)

* Update Parameters + Include SIP 2026 & 2027 (#2116)

* Update Parameters + Include SIP 2026 & 2027

* update default min age to 2 seconds

* fix feeds (#2118)

* add missing stETH info

* fix release name

---------

Co-authored-by: kaleb <[email protected]>

* update eth/btc and etc feeds (#2120)

* Update feeds.json

* Update feeds.json

* SCCP 2029 & 2030 (#2124)

* update sccps

* update georli

* sccp-2031 (#2125)

* SIP-2028 (#2123)

* update repo

* update chainlink feed

* lint and offchain market key fix

* add release info

* fix feeds

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* sccp-2032-2033 (#2128)

* update perps v2 json (#2130)

* SIP-2030 (#2129)

* Adding USDT

Update perpsv2-markets.json

* update parameters

* update max market value

* Add releases info

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* Update Optimism Goerli Chainlink Feeds  / Executes SCCP-2036 (#2134)

* Update feeds.json

* update mkr

* flip USDT liquidation parameters

* update to bp

* npm audit fix (#2138)

* update json (#2136)

Co-authored-by: Leonardo Massazza <[email protected]>

* update json (#2140)

* update perps v2 json (#2142)

* SIP-2029, SIP-2031, SIP-2032, SIP-2033 markets (#2137)

* SIP-2033 markets

* SIP-2032 (#2139)

* SIP-2032 - fakeFeeds

* fix THOR -> RUNE

* fix feed (fakes using wrong template)

* continue on exception from Tenderly

* Add SEI market (SIP-2029)

* Update added feeds

* update release feeds (#2141)

* update release feeds

- Missing

* update perps v2 settings

* update goerli feeds

* Update feeds.json

* remove fake feed

* Update feeds.json (#2144)

* fix wrong config

* update RNDR parameters (#2145)

---------

Co-authored-by: kaleb <[email protected]>

* fix releases.json

* goerli deployment artifacts

* update as per sccp-2040 (#2147)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kaleb <[email protected]>
Co-authored-by: meb <[email protected]>
Co-authored-by: Will Cory <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* SCCP-293 (#2076)

As part of SCCP-293:
- LPM can only increase by 25% until reaches target
- LBR can only increase by 10% until it reaches targets
- skewScale can only increase by 10% until reaches target

* SIP-298 - Add new markets (#2075)

* Set SIP-298 markets as resumed (already on-chain) (#2080)

* Set markets as resumed (already on-chain)

* fix test

* SIP-2014: New PerpsV2 Markets (#2082)

* set markets for SIP-2014 and prepare SIP-2015

* Add missing asset

* use CL decimals instead of hardcoded 8 decimals

* Add SIP-2015 markets (#2084)

* Add SIP-2015 markets

* Update perpsv2-markets.json (#2085)

---------

Co-authored-by: kaleb <[email protected]>

* Update Perp Parameters & set Paused to False (#2087)

* Update perpsv2-markets.json - optimism-goerli (#2083)

* fix(chainMapping): fix typos in chain mappings (#1959)

* Bump webpack from 5.75.0 to 5.76.0 (#2050)

Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: meb <[email protected]>

* Fix CI Test failing due to fork limitation (#2090)

* Update Perps V2 Market Settings - Skew Scale (#2088)

* Update perpsv2-markets.json (#2091)

* Update SCCP-293/2005 (#2092)

* implements sccp-2009 (#2094)

updates minAge to 4 and magAge to 60 seconds - post-bedrock changes

* Implement SIP-2021 (stETH) (#2095)

* Add missing markets to goerli (#2096)

* Add missing markets to goerli

* update goerli values with optimism ones

* SCCP-2012-2014-2015 (#2101)

* Update perpsv2-markets.json

* Update perpsv2-markets.json

* update goerli parameters

* Configure sSTETHPERP on Goerli-ovm (#2104)

* Configure sSTETHPERP on Goerli-ovm

* fix range in test

* Update perps v2 config (#2109)

* fix test (updated config out of range)

* Update on mainnet json

Incorporates
- SCCP-2016
- SCCP-2017
- SCCP-2018
- SCCP-2019
- SCCP-2020
- SCCP-2021
- SCCP-2022

* update to goerli json

* lint

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* update as per sccp (#2112)

* update as per 2024 (#2113)

Co-authored-by: Leonardo Massazza <[email protected]>

* update json (#2114)

* update sccp-2026-2027 (#2117)

* update address (#2111)

* Add new markets (SIP-2009/23/24/25/26/27) (#2110)

* Add new markets (SIP-2009/23/24/25)

* Update Parameters + Include SIP 2026 & 2027 (#2116)

* Update Parameters + Include SIP 2026 & 2027

* update default min age to 2 seconds

* fix feeds (#2118)

* add missing stETH info

* fix release name

---------

Co-authored-by: kaleb <[email protected]>

* update eth/btc and etc feeds (#2120)

* Update feeds.json

* Update feeds.json

* SCCP 2029 & 2030 (#2124)

* update sccps

* update georli

* sccp-2031 (#2125)

* SIP-2028 (#2123)

* update repo

* update chainlink feed

* lint and offchain market key fix

* add release info

* fix feeds

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* sccp-2032-2033 (#2128)

* update perps v2 json (#2130)

* SIP-2030 (#2129)

* Adding USDT

Update perpsv2-markets.json

* update parameters

* update max market value

* Add releases info

---------

Co-authored-by: Leonardo Massazza <[email protected]>

* Update Optimism Goerli Chainlink Feeds  / Executes SCCP-2036 (#2134)

* Update feeds.json

* update mkr

* flip USDT liquidation parameters

* update to bp

* npm audit fix (#2138)

* update json (#2136)

Co-authored-by: Leonardo Massazza <[email protected]>

* update json (#2140)

* update perps v2 json (#2142)

* SIP-2029, SIP-2031, SIP-2032, SIP-2033 markets (#2137)

* SIP-2033 markets

* SIP-2032 (#2139)

* SIP-2032 - fakeFeeds

* fix THOR -> RUNE

* fix feed (fakes using wrong template)

* continue on exception from Tenderly

* Add SEI market (SIP-2029)

* Update added feeds

* update release feeds (#2141)

* update release feeds

- Missing

* update perps v2 settings

* update goerli feeds

* Update feeds.json

* remove fake feed

* Update feeds.json (#2144)

* fix wrong config

* update RNDR parameters (#2145)

---------

Co-authored-by: kaleb <[email protected]>

* update as per sccp-2040 (#2147)

* unpause new markets (#2149)

* update json - sccp-2041-2042 (#2150)

* Update steth eth goerli feed (#2151)

Co-authored-by: Leonardo Massazza <[email protected]>

* update as per sccp-2044 (#2152)

* sccp-2045 (#2153)

* implement 2046 (#2154)

* sccp-2048 (#2155)

* update skew scale as per sccp-2049 (#2156)

* Fix CI - Use a new foundry cache (#2157)

* use a new foundry cache

* another try

* rm repo

* fix integration test too

* pr review

* sccp-2050 (#2158)

* implements sccp-2052 (#2159)

* SIP-2036 fix reward distributor to bubble failures (#2160)

* fix reward distributor to bubble failures

in the simplest possible way, fix a bug which prevents reward
distribution from getting sent to L2 due to internal OOG gas logic in
optimism contract (normally if you are OOG then the remaining code in
RewardsDistribution would also fail, but optimism deliberately consumes
an excessive amount of gas in a way that causes only the internal call
to fail)

in accordance with [SIP-2036](https://sips-go29dg4x3-synthetixio.vercel.app/sips/sip-2036/)

note: if you are wondering why I didnt just call the rewards
distribution receiver contract normally and continue to be using hte low
level call, the reason is im trying to keep changes to a minimal and
this change basically ended up being a 1 line changes.

* fix bug

* fix bug where reward distribution dispursement is sent

should be an and not an or

* adding notify reward amount to the trading rewards

otherwise sending rewards to l2 will fail

* Goerli deployment artifacts

* Goerli deployment artifacts

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: kaleb <[email protected]>
Co-authored-by: meb <[email protected]>
Co-authored-by: Will Cory <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dbeal <[email protected]>
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Merging #2162 (3db95b2) into master (0d2f2dc) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2162   +/-   ##
=======================================
  Coverage   92.48%   92.48%           
=======================================
  Files          91       91           
  Lines        2276     2276           
  Branches      673      673           
=======================================
  Hits         2105     2105           
  Misses        171      171           
Files Coverage Δ
contracts/RewardsDistribution.sol 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@leomassazza leomassazza marked this pull request as ready for review October 23, 2023 15:40
@leomassazza leomassazza merged commit 85d61a2 into master Oct 23, 2023
6 of 7 checks passed
@leomassazza leomassazza deleted the phecda-release-v2.96.1 branch October 23, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants