Skip to content

Algol release 2.74.1 #1832

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

Merged
merged 458 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
458 commits
Select commit Hold shift + click to select a range
913d0b3
Removing inverse synths (#1592)
jjgonecrypto Nov 3, 2021
963c7a5
Ensuring SCCP-139 feeds are persisted to future ExchangeRates contrac…
jjgonecrypto Nov 3, 2021
8defb47
Futures rename parameters (#1595)
artdgn Nov 5, 2021
e9eb1cd
Deploy kovan-ovm-futures v0.7.0 (#1589)
liamzebedee Nov 10, 2021
76d43ce
Skip shorts integration tests when cannot open loans (#1597)
jjgonecrypto Nov 10, 2021
073cb12
Add default private key for local-ovm deploys (#1455)
liamzebedee Nov 15, 2021
0cef80c
Update ops node commit to working version in `develop`
liamzebedee Nov 15, 2021
f2172c3
SIP-120: TWAP Exchange Function (#1127)
sohkai Nov 15, 2021
509688a
Adding 6 more potential releases
jjgonecrypto Nov 15, 2021
7fe8e19
Helper script to distribute SNX/sUSD to accounts on kovan-futures-ovm…
liamzebedee Nov 16, 2021
5cdbb23
Futures liquidation fee update (#1594)
artdgn Nov 16, 2021
d7b8c12
adding market debt explanation comments
artdgn Nov 17, 2021
472d20e
Merge branch 'master' into develop
jjgonecrypto Nov 17, 2021
dac3532
Fixing owner script to not submit multiple accept for dupe contracts
jjgonecrypto Nov 17, 2021
2bd3ceb
Upgrading to OVM 2.0 (or the destruction of useless code) (#1598)
jjgonecrypto Nov 18, 2021
682a2ef
Minor fixes for release history
jjgonecrypto Nov 18, 2021
9f38d1a
SIP-167 Introduces an L2 governance bridge (#1402)
eternauta1337 Nov 23, 2021
5c9b643
Removing mistake
jjgonecrypto Nov 23, 2021
fe6a61a
Merge branch 'master' into develop
jjgonecrypto Nov 23, 2021
6a5b7b2
Fixes from menkalinan (#1608)
jjgonecrypto Nov 24, 2021
ffc3d61
Update OVM bytecode (#1613)
barrasso Dec 1, 2021
69fb372
Move debt snapshot to beforeEach block (#1616)
barrasso Dec 1, 2021
1f6dd63
Fix duplicate fee reporting on WrapperFactory (#1617)
dbeal-eth Dec 3, 2021
e1cdc23
Merge branch 'master' into develop
jjgonecrypto Dec 3, 2021
437f62f
SIP-194 Fix Liquidations on L2 (#1621)
jjgonecrypto Dec 7, 2021
92fe9e7
Fix broken unit test (#1622)
jjgonecrypto Dec 8, 2021
c2481ae
Futures next price mechanism (#1609)
artdgn Dec 9, 2021
ef412c9
Futures remove closure fee and rounding (#1610)
artdgn Dec 9, 2021
767229c
reduce storage variables sizes for gas savings (#1614)
artdgn Dec 9, 2021
af2813c
Ensuring job-compile size check matches build command (#1628)
jjgonecrypto Dec 9, 2021
a82fb87
refactor views into mixin to reduce clutter (#1615)
artdgn Dec 9, 2021
d5e9d3c
rename circuit breaker contracts (#1629)
artdgn Dec 9, 2021
b898b4e
Adding exchange gas usage output
jjgonecrypto Dec 13, 2021
f734d9a
Adding gas output to synth issue, burn and claim in int tests
jjgonecrypto Dec 13, 2021
b93863a
SIP-188: Add sETHBTC synth (#1618)
barrasso Dec 13, 2021
70775ee
add tests for debt cache when markets
artdgn Dec 14, 2021
828c24e
SIP-195: L2 CollateralEth Loans (#1632)
barrasso Dec 15, 2021
4513b16
Merge branch 'master' into develop
jjgonecrypto Dec 15, 2021
60f3525
Merge branch 'develop' of github.com:Synthetixio/synthetix into futur…
jacko125 Dec 22, 2021
543bdbe
Merge branch 'futures-implementation' of github.com:Synthetixio/synth…
jacko125 Dec 22, 2021
4c981ba
Sip 196 remove internal oracle (#1636)
artdgn Dec 22, 2021
d94ea7c
Fix contracts compiling after merge
jacko125 Dec 22, 2021
80f573b
Merge branch 'develop' of github.com:Synthetixio/synthetix into futur…
jacko125 Dec 22, 2021
286a1af
Remove LimitedTransferSynth
jacko125 Dec 22, 2021
61eca39
add liquidation tests in integration (#1625)
dbeal-eth Dec 30, 2021
34f85cf
Merge branch 'develop' into futures-implementation
jacko125 Jan 9, 2022
a88b2ee
use new `hardhat-interact` package instead of builtin (#1612)
dbeal-eth Jan 10, 2022
d34061c
fix liquidations fork test fail (#1646)
dbeal-eth Jan 11, 2022
42ab876
Merge branch 'develop' of github.com:Synthetixio/synthetix into futur…
jacko125 Jan 11, 2022
2dd44f8
Merge branch 'futures-implementation' of github.com:Synthetixio/synth…
jacko125 Jan 11, 2022
54a9c52
SIP-193 Reduce size for SystemSettings (#1627)
leckylao Jan 13, 2022
3230d49
Implement interface funcs for BaseDebtCache, EmptyCollateralManager, …
jacko125 Jan 13, 2022
2d56244
Update configuration of loan and system settings (#1637)
barrasso Jan 13, 2022
ab736f0
SIP-200: Fix FeePool Rewards Distribution (#1650)
barrasso Jan 14, 2022
5a5f6f6
migration script helper allows deployment and staging of migration sc…
dbeal-eth Jan 14, 2022
92effdb
deploy futures to kovan-ovm-futures and update configuration scripts
jacko125 Jan 18, 2022
8ad2130
Merge branch 'develop' into futures-implementation
artdgn Jan 19, 2022
32693f7
fix shadowing in empty futures market
artdgn Jan 19, 2022
efc7e88
fix circuit breaker tests
artdgn Jan 19, 2022
62737a7
remove deprecated setLastExchangeRateForSynth
artdgn Jan 19, 2022
9adafe3
Merge branch 'master' into develop
jjgonecrypto Jan 19, 2022
239d5ae
update fund local accounts script
jacko125 Jan 20, 2022
d4b9809
Merge branch 'futures-implementation' of github.com:Synthetixio/synth…
jacko125 Jan 20, 2022
115cbcf
fix atomic exchange circuit breaker tests
artdgn Jan 20, 2022
25c5d18
fix market settings and manager tests
artdgn Jan 20, 2022
ccda4a7
SIP-184 Dynamic Fees (#1649)
artdgn Jan 20, 2022
7da2757
fix status script and fund local accounts
jacko125 Jan 20, 2022
0b4d8d6
Take debt snapshot before funding local accounts (#1657)
0xjocke Jan 21, 2022
0296bc4
Merge branch 'futures-implementation' of https://github.com/Synthetix…
artdgn Jan 21, 2022
d9351f0
fix aggregators usage in futures, setup fixes
artdgn Jan 21, 2022
7d1e2c3
fix futures market test setup
artdgn Jan 21, 2022
b64ab0b
fix futures market data tests
artdgn Jan 21, 2022
515338c
fix next price test setup
artdgn Jan 21, 2022
76b9529
fix system settings tests
artdgn Jan 21, 2022
63923c2
fix integration tests failing to setup markets
artdgn Jan 21, 2022
4e08eaf
fix market debt calculation during setup
artdgn Jan 21, 2022
b3012b0
Deploy SNX/ETH and sUSD/DAI staking rewards on OVM (#1653)
jacko125 Jan 21, 2022
702dc30
remove old RewardEscrow from deployment.json for ovm environments (#1…
barrasso Jan 21, 2022
6b7655e
Update kovan-ovm/feeds.json for OCR (#1659)
barrasso Jan 21, 2022
edf9d33
verify deployment
jacko125 Jan 24, 2022
7f345b2
Merge branch 'futures-implementation' of github.com:Synthetixio/synth…
jacko125 Jan 24, 2022
10743f7
fix market settings tests
artdgn Jan 25, 2022
d9d342c
fix futures market tests
artdgn Jan 25, 2022
84ab991
Update feeds.json for kovan ovm with new OCR proxies (#1664)
barrasso Jan 25, 2022
69bb32a
Optimism Forking with Hardhat (#1656)
dbeal-eth Jan 26, 2022
74e1b11
Remove legacy deployment config from kovan-ovm (#1665)
barrasso Jan 27, 2022
e6ce2b7
Upgrade Gnosis SDK (#1655)
noahlitvin Jan 27, 2022
9f38be7
SIPS 196, 193, 184 - audit fixes, full version (#1661)
artdgn Jan 27, 2022
c34927d
Futures merge 184 (#1672)
artdgn Jan 28, 2022
fb28528
Merge branch 'develop' into futures-implementation
artdgn Jan 28, 2022
038b886
Merge remote-tracking branch 'origin/develop' into futures-implementa…
artdgn Jan 28, 2022
de1f090
fix breaker merge test
artdgn Jan 28, 2022
e53c9c0
fix test lints (#1607)
dbeal-eth Jan 28, 2022
8d0f088
try fix dual itnegration tests
artdgn Jan 31, 2022
2103cd5
Merge branch 'develop' into futures-implementation
artdgn Jan 31, 2022
a265c9d
update migration script to also stage nominations (#1670)
dbeal-eth Feb 1, 2022
77780f7
Merge branch 'develop' into futures-implementation
artdgn Feb 1, 2022
64de1c2
another attempt to fix dual integration tests
artdgn Feb 1, 2022
9a4b8a7
Revert "another attempt to fix dual integration tests"
artdgn Feb 1, 2022
addfca8
Revert "try fix dual itnegration tests"
artdgn Feb 1, 2022
78c2622
Merge branch 'master' into develop
jjgonecrypto Feb 3, 2022
18af676
Removing redundant ExchangeRatesWithInversePricing
jjgonecrypto Feb 3, 2022
6038c76
Ensuring fork tests do compile (#1679)
jjgonecrypto Feb 3, 2022
73c69f4
Futures dynamic fee (#1673)
artdgn Feb 4, 2022
f15cdbc
Sip 185 debt shares (#1601)
dbeal-eth Feb 4, 2022
3cb6efb
Fix the validate deployment CI run (#1680)
jjgonecrypto Feb 4, 2022
204b13b
Removing the redundant owner param from migrations (#1681)
jjgonecrypto Feb 4, 2022
9652047
Collecting Test Metadata in CI (#1683)
noahlitvin Feb 4, 2022
74acf14
SIP-209 Update feeRateForExchange function signature (#1686)
barrasso Feb 5, 2022
d5a336a
Merge branch 'master' into develop
jjgonecrypto Feb 7, 2022
24acb9c
Updating task-node to properly manage the provider
jjgonecrypto Feb 8, 2022
6b8947e
Futures size reduction (#1682)
artdgn Feb 9, 2022
cba430d
address preliminary audit comments (#1691)
artdgn Feb 9, 2022
c3e257f
Futures pausing (#1692)
artdgn Feb 9, 2022
f88c9f3
Merge remote-tracking branch 'origin/develop' into futures-implementa…
artdgn Feb 9, 2022
3b109b4
Basic npm audit fix (#1693)
jjgonecrypto Feb 9, 2022
5e25a0b
Merge branch 'master' into develop
jjgonecrypto Feb 9, 2022
560bb84
Merge remote-tracking branch 'origin/develop' into futures-implementa…
artdgn Feb 10, 2022
86fed3d
Updating mainnet-ovm feeds to new chainlink OCR (#1645)
jjgonecrypto Feb 14, 2022
bba9562
add moar releases (#1698)
barrasso Feb 14, 2022
a52bdaa
Merge branch 'master' into develop
jjgonecrypto Feb 14, 2022
7903058
Fixing ABI anomaly for kovan-ovm for exchangeWithVirtual
jjgonecrypto Feb 16, 2022
d3025fa
Merge branch 'master' into develop
jjgonecrypto Feb 17, 2022
8998026
AIP-202 - Upgrade supply schedule to use target ratio inflation amoun…
jacko125 Feb 18, 2022
20bec5c
Merge branch 'master' into develop
jjgonecrypto Feb 19, 2022
d1ad8b4
Fixing lint
jjgonecrypto Feb 19, 2022
0fe33c3
Updating mainnet-ovm feeds to new chainlink OCR (#1645)
jjgonecrypto Feb 14, 2022
1a36106
add moar releases (#1698)
barrasso Feb 14, 2022
d0a43a6
Polaris release 2.61 to mainnet ovm (#1699)
barrasso Feb 14, 2022
9af19c8
Prepublish step
Feb 14, 2022
1ea400e
2.61.0
Feb 14, 2022
7dc18fa
Fixing ABI anomaly for kovan-ovm for exchangeWithVirtual
jjgonecrypto Feb 16, 2022
d525b6c
Fixing ABI anomaly for kovan-ovm for exchangeWithVirtual
jjgonecrypto Feb 16, 2022
d2f3a13
2.61.1
Feb 16, 2022
7f53a88
AIP-202 - Upgrade supply schedule to use target ratio inflation amoun…
jacko125 Feb 18, 2022
8e0d37a
Hamal release v2.62 mainnet (#1706)
jacko125 Feb 19, 2022
73eb472
Prepublish step
Feb 19, 2022
98cc38a
2.62.0
Feb 19, 2022
cfb30ff
Fixing lint
jjgonecrypto Feb 19, 2022
65a9c7e
Merge branch 'develop' into futures-implementation
artdgn Feb 24, 2022
7282e75
Merge branch 'master' into develop
jjgonecrypto Feb 24, 2022
456f81a
Merge branch 'develop' into futures-implementation
artdgn Feb 24, 2022
59731f0
deploy new futuresMarkets with dynamic fees to kovan-ovm-futures
jacko125 Feb 25, 2022
8f29d1e
verify
jacko125 Feb 25, 2022
2184636
add ovm etherscan key support (#1703)
dbeal-eth Feb 26, 2022
6413b66
Merge branch 'develop' into futures-implementation
artdgn Mar 1, 2022
63fa3f1
address minor audit issues
artdgn Mar 1, 2022
b41a4eb
deploy systemStatus
jacko125 Mar 2, 2022
e975d81
Merge branch 'futures-implementation' of github.com:Synthetixio/synth…
jacko125 Mar 2, 2022
8ab725f
release exchangeRates
jacko125 Mar 2, 2022
7caa059
dual integration test fix attempt
artdgn Mar 3, 2022
f665639
Futures single market pausing (#1711)
artdgn Mar 8, 2022
60fe55d
Futures support multiple markets for same asset (#1713)
artdgn Mar 9, 2022
87c7d29
Futures volume source fee methods (#1714)
artdgn Mar 9, 2022
527ef56
update releases json
artdgn Mar 9, 2022
c7157b1
revert unrelated contract changes
artdgn Mar 9, 2022
f50d15a
Merge pull request #1450 from Synthetixio/futures-implementation
jacko125 Mar 9, 2022
cac4929
fix fork tests (#1717)
artdgn Mar 9, 2022
17a48ae
Debtcache import excluded debt entries (#1716)
artdgn Mar 10, 2022
a3bc598
SIP-165 Debt Orcale (#1694)
dbeal-eth Mar 10, 2022
ae7f567
add missing deployment files
barrasso Mar 14, 2022
7c8da2c
Merge branch 'staging' of https://github.com/Synthetixio/synthetix in…
barrasso Mar 14, 2022
4d520d7
Futures audit update (#1719)
artdgn Mar 15, 2022
4428116
Merge branch 'staging' of https://github.com/Synthetixio/synthetix in…
barrasso Mar 15, 2022
aee00e6
Add prettier linting for solidity files (#1722)
dbeal-eth Mar 15, 2022
db71979
Fixing single network version labelling (#1723)
jjgonecrypto Mar 15, 2022
e181a9b
diphda fixes to deployment (#1724)
artdgn Mar 16, 2022
d7a27a7
l1 kovan deployment artifacts
barrasso Mar 16, 2022
d74687b
Merge branch 'staging' of https://github.com/Synthetixio/synthetix in…
barrasso Mar 17, 2022
7cb07e7
Merge branch 'staging' into develop
barrasso Mar 17, 2022
ec07de2
Merge branch 'staging' of https://github.com/Synthetixio/synthetix in…
barrasso Mar 17, 2022
83de8b7
Merge branch 'staging' into develop
barrasso Mar 17, 2022
29938be
Merge branch 'master' into develop
jjgonecrypto Mar 18, 2022
d7c586d
add excluded contracts to nominate script (#1730)
jacko125 Mar 18, 2022
0ec8b2b
fix fork test (#1731)
artdgn Mar 21, 2022
c33dea9
Merge branch 'master' into develop
barrasso Mar 23, 2022
5546e93
Merge branch 'master' into develop
barrasso Mar 23, 2022
6f9e1f9
futures integration and fork tests (#1721)
artdgn Mar 24, 2022
58fd7c1
SIP-220 Fix Issuer to account for total debt (#1735)
jjgonecrypto Mar 28, 2022
68199c5
Fixing L1 forks where issuance circuit breaker was insitgating (#1738)
jjgonecrypto Mar 28, 2022
45fd1fe
Merge branch 'master' into develop
jjgonecrypto Mar 28, 2022
85002a6
Sip 217 + 212 (#1736)
artdgn Mar 29, 2022
bd2c8af
Merge branch 'master' into develop
barrasso Mar 31, 2022
d33c8cd
fix short integration test on non-fork (#1748)
barrasso Apr 1, 2022
e862277
Add more release entries and validate deployments (#1747)
barrasso Apr 2, 2022
5311c6e
SIP-217 add asset details for futures markets (#1750)
0xjocke Apr 4, 2022
6e10a9d
upgrade hardhat interact (#1751)
artdgn Apr 4, 2022
d58a1ca
deploy script changes for external use (#1737) (#1752)
jjgonecrypto Apr 4, 2022
0a07849
Bump minimist from 1.2.5 to 1.2.6 (#1734)
dependabot[bot] Apr 5, 2022
a618612
ci: maintenance updates for docker containers and gh actions (#1753)
drptbl Apr 7, 2022
a158680
Ensure we merge assets details when no deploymentPath (#1755)
0xjocke Apr 8, 2022
86b134a
Consolidating on ProxySynthetix and ProxysUSD (#1704)
jjgonecrypto Apr 8, 2022
9a3862d
SIP-222: Update Exchange Fee System (#1749)
noahlitvin Apr 8, 2022
10c683b
SIP-198: Atomic Exchange At Pure Chainlink Price (#1667)
noahlitvin Apr 8, 2022
d33f602
Fix test (#1756)
noahlitvin Apr 11, 2022
5a0008d
Ensure connect-bridges handles approvals where necessary (#1743)
jjgonecrypto Apr 15, 2022
9ff8bb5
Merge branch 'master' into develop
jjgonecrypto Apr 23, 2022
cb4fbc3
Clean up futures and fix npm audit issue (#1761)
artdgn Apr 28, 2022
2a36404
SIP-231: Offchain Circuit Breaker (#1765)
barrasso May 3, 2022
cf939af
Sccps 191 192 (#1770)
artdgn May 6, 2022
a004b27
Merge branch 'staging' into develop
barrasso May 6, 2022
1347099
Add INR spot synth and APE, DYDX perps (#1773)
barrasso May 9, 2022
1cfafd3
Perps v2 - split contracts (#1763)
artdgn May 9, 2022
b4f5b97
SIP-229 Synths Bridge (#1754)
dbeal-eth May 10, 2022
fb29b66
Add sEUR spot synth and perp to kovan ovm (#1774)
barrasso May 10, 2022
90e5d99
SIP-198: Update Computation Methodology in Atomic Pricing (#1768)
barrasso May 10, 2022
411322f
Merge branch 'staging' into develop
barrasso May 10, 2022
60b89e9
Merge branch 'master' into develop
barrasso May 11, 2022
80bf0de
SIP-236: fix exchange before reclaim risk (#1778)
dbeal-eth May 13, 2022
02f6845
SIP-148: Liquidatooor (#1647)
barrasso May 13, 2022
c304356
Alpheratz release 2.69.0-alpha to kovan (#1781)
barrasso May 13, 2022
0c98138
Prepublish step
May 13, 2022
9316e63
2.69.0-alpha
May 13, 2022
4fbf311
Merge branch 'master' into staging
barrasso May 17, 2022
02a1f40
Merge branch 'master' into develop
barrasso May 17, 2022
28ba2b7
remove duplicate code due to merge
barrasso May 17, 2022
7c17aec
Merge branch 'staging' into develop
barrasso May 17, 2022
381ea3b
remove duplicate test case
barrasso May 17, 2022
eb0f99f
fix kovan futures: add axs feed, remove luna mkt (#1786)
artdgn May 20, 2022
aea53e0
SIP-239: Liquidator Rewards Restitution (#1788)
barrasso May 23, 2022
0ead751
Rasalhague release 2.70.0-alpha to kovan (#1789)
barrasso May 23, 2022
237fa0e
Prepublish step
May 23, 2022
b9e0c4b
2.70.0-alpha
May 23, 2022
0293d5f
Merge branch 'master' into staging
barrasso May 24, 2022
8c9e3d6
Merge branch 'master' into develop
barrasso May 24, 2022
4d2add4
Perps changes batch 1 (#1780)
artdgn May 24, 2022
49087f4
Merge branch 'master' into staging
barrasso May 26, 2022
a0138ac
Merge branch 'master' into develop
barrasso May 26, 2022
6445920
(alt) SIP-246: Upgrade Collateral Short (#1793)
eternauta1337 Jun 2, 2022
477adae
Kochab v2.71.0-alpha release to kovan-ovm (#1800)
barrasso Jun 2, 2022
bb0efad
Merge branch 'develop' into staging
barrasso Jun 2, 2022
b5b11b6
Prepublish step
Jun 2, 2022
c68f102
2.71.1-alpha
Jun 2, 2022
13172ef
Merge branch 'master' into staging
barrasso Jun 3, 2022
be24baf
Saiph release v2.72.0-alpha to kovan (#1809)
barrasso Jun 8, 2022
2ec0553
Prepublish step
Jun 8, 2022
ed37e18
2.72.0-alpha
Jun 8, 2022
51c84a5
Merge branch 'master' into staging
barrasso Jun 9, 2022
5e8d329
Denebola v2.73.0-alpha release to kovan (#1811)
barrasso Jun 14, 2022
176aef9
Prepublish step
Jun 14, 2022
0aad2cb
2.73.0-alpha
Jun 14, 2022
7bdaf20
Merge branch 'master' into staging
barrasso Jun 15, 2022
d4eaa4f
Algol release to kovan (#1830)
barrasso Jun 22, 2022
9a7ea19
Prepublish step
Jun 22, 2022
a8aded8
2.74.0-alpha
Jun 22, 2022
03abba8
minor audit feedback
barrasso Jun 23, 2022
3dd0be6
add l1 deployment artifacts
barrasso Jun 23, 2022
32ebe8f
add more deployment artifacts
barrasso Jun 23, 2022
218facd
update system settings unit test with correct snx penalty
barrasso Jun 23, 2022
70b8872
add l2 deployment artifacts
barrasso Jun 23, 2022
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
32 changes: 16 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
job-audit:
working_directory: ~/repo
docker:
- image: synthetixio/docker-sec-tools:16.14-ubuntu
- image: synthetixio/docker-sec-tools:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -33,7 +33,7 @@ jobs:
job-compile:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -45,7 +45,7 @@ jobs:
job-fork-tests-ovm:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
job-fork-tests:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
job-lint:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -164,7 +164,7 @@ jobs:
job-pack-browser:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -178,7 +178,7 @@ jobs:
job-prepare:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
job-simulate-release:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -235,7 +235,7 @@ jobs:
job-static-analysis:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -255,7 +255,7 @@ jobs:
job-test-deploy-script:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -281,7 +281,7 @@ jobs:
job-unit-tests-coverage-report:
working_directory: ~/repo
docker:
- image: synthetixio/docker-sec-tools:16.14-ubuntu
- image: synthetixio/docker-sec-tools:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -297,7 +297,7 @@ jobs:
job-unit-tests-coverage:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
job-unit-tests-gas-report:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -348,7 +348,7 @@ jobs:
job-unit-tests:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down Expand Up @@ -384,7 +384,7 @@ jobs:
job-validate-deployments:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand All @@ -403,7 +403,7 @@ jobs:
job-validate-etherscan:
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/snippets/job-header-node.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
working_directory: ~/repo
docker:
- image: synthetixio/docker-node:16.14-ubuntu
- image: synthetixio/docker-node:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
2 changes: 1 addition & 1 deletion .circleci/src/snippets/job-header-sec-tools.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
working_directory: ~/repo
docker:
- image: synthetixio/docker-sec-tools:16.14-ubuntu
- image: synthetixio/docker-sec-tools:16.15-ubuntu
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
24 changes: 14 additions & 10 deletions .github/workflows/slither-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,32 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/synthetixio/docker-sec-tools/ubuntu:16.14
image: ghcr.io/synthetixio/docker-sec-tools/ubuntu:16.15
credentials:
username: synthetixio
password: ${{ secrets.GH_PACKAGES_READ_ONLY }}

steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # pin@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3.0.2

- name: Set npm cache directory
run: npm config set cache .npm-cache --global
continue-on-error: true

- uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # pin@v3
- name: Get npm cache directory
id: npm-cache-dir
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Get node version
id: node-version
run: echo "::set-output name=version::$(node --version)"

- uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # pin@v3.0.4
with:
path: |
.npm-cache
node_modules
key: ${{ runner.os }}-ubuntu-${{ hashFiles('**/package-lock.json') }}
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-ubuntu-${{ steps.node-version.outputs.version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-ubuntu-
continue-on-error: true
${{ runner.os }}-ubuntu-${{ steps.node-version.outputs.version }}-

- name: Install dependencies
run: npm ci --prefer-offline
Expand Down
2 changes: 1 addition & 1 deletion contracts/Issuer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ contract Issuer is Owned, MixinSystemSettings, IIssuer {
require(liquidator().isLiquidationOpen(account, isSelfLiquidation), "Not open for liquidation");

// Get the penalty for the liquidation type
uint penalty = isSelfLiquidation ? getSelfLiquidationPenalty() : getLiquidationPenalty();
uint penalty = isSelfLiquidation ? getSelfLiquidationPenalty() : getSnxLiquidationPenalty();

// Get the account's debt balance
(uint debtBalance, , bool anyRateIsInvalid) =
Expand Down
5 changes: 5 additions & 0 deletions contracts/MixinSystemSettings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ contract MixinSystemSettings is MixinResolver {
bytes32 internal constant SETTING_LIQUIDATION_RATIO = "liquidationRatio";
bytes32 internal constant SETTING_LIQUIDATION_ESCROW_DURATION = "liquidationEscrowDuration";
bytes32 internal constant SETTING_LIQUIDATION_PENALTY = "liquidationPenalty";
bytes32 internal constant SETTING_SNX_LIQUIDATION_PENALTY = "snxLiquidationPenalty";
bytes32 internal constant SETTING_SELF_LIQUIDATION_PENALTY = "selfLiquidationPenalty";
bytes32 internal constant SETTING_FLAG_REWARD = "flagReward";
bytes32 internal constant SETTING_LIQUIDATE_REWARD = "liquidateReward";
Expand Down Expand Up @@ -144,6 +145,10 @@ contract MixinSystemSettings is MixinResolver {
return flexibleStorage().getUIntValue(SETTING_CONTRACT_NAME, SETTING_LIQUIDATION_PENALTY);
}

function getSnxLiquidationPenalty() internal view returns (uint) {
return flexibleStorage().getUIntValue(SETTING_CONTRACT_NAME, SETTING_SNX_LIQUIDATION_PENALTY);
}

function getSelfLiquidationPenalty() internal view returns (uint) {
return flexibleStorage().getUIntValue(SETTING_CONTRACT_NAME, SETTING_SELF_LIQUIDATION_PENALTY);
}
Expand Down
18 changes: 15 additions & 3 deletions contracts/SystemSettings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,18 @@ contract SystemSettings is Owned, MixinSystemSettings, ISystemSettings {
return getLiquidationRatio();
}

// SIP-15 Liquidations
// penalty taken away from target of liquidation (with 18 decimals). E.g. 10% is 0.1e18
// SIP-97 Liquidations
// penalty taken away from target of Collateral liquidation (with 18 decimals). E.g. 10% is 0.1e18
function liquidationPenalty() external view returns (uint) {
return getLiquidationPenalty();
}

// SIP-251 Differentiate Liquidation Penalties
// penalty taken away from target of SNX liquidation (with 18 decimals). E.g. 30% is 0.3e18
function snxLiquidationPenalty() external view returns (uint) {
return getSnxLiquidationPenalty();
}

/* ========== SIP-148: Upgrade Liquidation Mechanism ========== */

/// @notice Get the escrow duration for liquidation rewards
Expand Down Expand Up @@ -311,7 +317,7 @@ contract SystemSettings is Owned, MixinSystemSettings, ISystemSettings {
flexibleStorage().setLiquidationRatio(
SETTING_LIQUIDATION_RATIO,
_liquidationRatio,
getLiquidationPenalty(),
getSnxLiquidationPenalty(),
getIssuanceRatio()
);
emit LiquidationRatioUpdated(_liquidationRatio);
Expand All @@ -322,6 +328,11 @@ contract SystemSettings is Owned, MixinSystemSettings, ISystemSettings {
emit LiquidationEscrowDurationUpdated(duration);
}

function setSnxLiquidationPenalty(uint penalty) external onlyOwner {
flexibleStorage().setSnxLiquidationPenalty(SETTING_SNX_LIQUIDATION_PENALTY, penalty);
emit SnxLiquidationPenaltyUpdated(penalty);
}

function setLiquidationPenalty(uint penalty) external onlyOwner {
flexibleStorage().setLiquidationPenalty(SETTING_LIQUIDATION_PENALTY, penalty);
emit LiquidationPenaltyUpdated(penalty);
Expand Down Expand Up @@ -530,6 +541,7 @@ contract SystemSettings is Owned, MixinSystemSettings, ISystemSettings {
event LiquidationRatioUpdated(uint newRatio);
event LiquidationEscrowDurationUpdated(uint newDuration);
event LiquidationPenaltyUpdated(uint newPenalty);
event SnxLiquidationPenaltyUpdated(uint newPenalty);
event SelfLiquidationPenaltyUpdated(uint newPenalty);
event FlagRewardUpdated(uint newReward);
event LiquidateRewardUpdated(uint newReward);
Expand Down
19 changes: 15 additions & 4 deletions contracts/SystemSettingsLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ library SystemSettingsLib {
uint public constant MAX_LIQUIDATION_RATIO = 1e18; // 100% issuance ratio
uint public constant RATIO_FROM_TARGET_BUFFER = 2e18; // 200% - mininimum buffer between issuance ratio and liquidation ratio

uint public constant MAX_LIQUIDATION_PENALTY = 3e18 / 10; // Max 30% liquidation penalty / bonus
uint public constant MAX_LIQUIDATION_PENALTY = 9e18 / 10; // Max 90% liquidation penalty / bonus

uint public constant MAX_LIQUIDATION_DELAY = 3 days;
uint public constant MIN_LIQUIDATION_DELAY = 300; // 5 min
Expand Down Expand Up @@ -145,11 +145,11 @@ library SystemSettingsLib {
IFlexibleStorage flexibleStorage,
bytes32 settingName,
uint _liquidationRatio,
uint getLiquidationPenalty,
uint getSnxLiquidationPenalty,
uint getIssuanceRatio
) external {
require(
_liquidationRatio <= MAX_LIQUIDATION_RATIO.divideDecimal(SafeDecimalMath.unit().add(getLiquidationPenalty)),
_liquidationRatio <= MAX_LIQUIDATION_RATIO.divideDecimal(SafeDecimalMath.unit().add(getSnxLiquidationPenalty)),
"liquidationRatio > MAX_LIQUIDATION_RATIO / (1 + penalty)"
);

Expand All @@ -169,11 +169,12 @@ library SystemSettingsLib {
flexibleStorage.setUIntValue(SETTINGS_CONTRACT_NAME, settingName, duration);
}

function setLiquidationPenalty(
function setSnxLiquidationPenalty(
IFlexibleStorage flexibleStorage,
bytes32 settingName,
uint penalty
) external {
// MAX_LIQUIDATION_PENALTY is enforced on both Collateral and SNX liquidations
require(penalty <= MAX_LIQUIDATION_PENALTY, "penalty > MAX_LIQUIDATION_PENALTY");

flexibleStorage.setUIntValue(SETTINGS_CONTRACT_NAME, settingName, penalty);
Expand All @@ -189,6 +190,16 @@ library SystemSettingsLib {
flexibleStorage.setUIntValue(SETTINGS_CONTRACT_NAME, settingName, penalty);
}

function setLiquidationPenalty(
IFlexibleStorage flexibleStorage,
bytes32 settingName,
uint penalty
) external {
require(penalty <= MAX_LIQUIDATION_PENALTY, "penalty > MAX_LIQUIDATION_PENALTY");

flexibleStorage.setUIntValue(SETTINGS_CONTRACT_NAME, settingName, penalty);
}

function setFlagReward(
IFlexibleStorage flexibleStorage,
bytes32 settingName,
Expand Down
2 changes: 2 additions & 0 deletions contracts/interfaces/ISystemSettings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ interface ISystemSettings {

function liquidationPenalty() external view returns (uint);

function snxLiquidationPenalty() external view returns (uint);

function selfLiquidationPenalty() external view returns (uint);

function flagReward() external view returns (uint);
Expand Down
Loading