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

SIP-420: Treasury market #2354

Merged
merged 45 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1ded8ae
initial impl for treasury market
dbeal-eth Dec 16, 2024
b5749d0
tests pass 100% covered
dbeal-eth Dec 16, 2024
90a4bd1
cleanup and update to match the latest stated requirements for SIP-420
dbeal-eth Jan 19, 2025
b29eccc
add rebalance function, update deploy script
dbeal-eth Jan 19, 2025
e19e795
fix yarn lock and test command
dbeal-eth Jan 19, 2025
a5d12f6
fix scripts
dbeal-eth Jan 19, 2025
d14b3ec
remove unneeded deps; fix build testable
dbeal-eth Jan 19, 2025
923695f
yarn
dbeal-eth Jan 19, 2025
dbefd38
add main package dependency to prevent issues with build testable
dbeal-eth Jan 19, 2025
516a847
fixes from review feedback
dbeal-eth Jan 20, 2025
45062f8
exclude from depcheck
dbeal-eth Jan 21, 2025
5576dcc
add delegation migrate function (#2355)
dbeal-eth Jan 21, 2025
176f18d
add some tests, cleanups
dbeal-eth Jan 21, 2025
b2973c0
add penalty factor
dbeal-eth Jan 24, 2025
870d16b
Replace `forge install foundry-rs/forge-std` with node_modules
noisekit Jan 22, 2025
648f653
add repayment penalty view function
dbeal-eth Jan 24, 2025
704fa04
full coverage
dbeal-eth Jan 24, 2025
75d8b96
initial audit feedback
dbeal-eth Jan 28, 2025
49f145d
Add missing deploy command
noisekit Jan 29, 2025
7e02989
Align oracle manager version with core
noisekit Jan 30, 2025
6be4931
introduce totalSaddledCollateral
dbeal-eth Jan 31, 2025
b7ac48f
should be checking against the newPoolIds min issuance ratio
dbeal-eth Jan 31, 2025
132e210
Update markets/treasury-market/contracts/TreasuryMarket.sol
dbeal-eth Jan 31, 2025
a6f50ba
more fixes
dbeal-eth Jan 31, 2025
cae0396
fix audit notes
dbeal-eth Jan 31, 2025
001a2e6
should be checking against liqiudation c-ratio, not issuance ratio
dbeal-eth Jan 31, 2025
9096edc
execute rebalance before transfer
dbeal-eth Jan 31, 2025
0b1538c
rebalance at the beginning of saddle
dbeal-eth Jan 31, 2025
d226dda
add some missing ticker calls
dbeal-eth Jan 31, 2025
d88d8f8
fix unnecessary recomputation
dbeal-eth Jan 31, 2025
f64960f
fix more misc
dbeal-eth Jan 31, 2025
518ee19
remove harmful rebalance
dbeal-eth Jan 31, 2025
20ccc55
add specific check to verify artificial debt is sufficient to repay
dbeal-eth Feb 3, 2025
de62c5e
fix lints
dbeal-eth Feb 3, 2025
8d96c7b
fix gov storage dump
dbeal-eth Feb 3, 2025
d7cdcd2
add files that are apparently now required
dbeal-eth Feb 3, 2025
2179ea0
Add --force-publish to publish all packages
noisekit Feb 3, 2025
dd76f17
add verify pool cratio patch
dbeal-eth Feb 4, 2025
39e59be
add event for debt decay
dbeal-eth Feb 4, 2025
23f080f
add event catch
dbeal-eth Feb 4, 2025
d5f0d88
add missing interface id
dbeal-eth Feb 4, 2025
a7f40a0
add missing market id match check
dbeal-eth Feb 4, 2025
6f32381
fix lint
dbeal-eth Feb 4, 2025
7d6f58d
fix a few audit points
dbeal-eth Feb 5, 2025
c53390f
fix lint
dbeal-eth Feb 5, 2025
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
Prev Previous commit
Next Next commit
Replace forge install foundry-rs/forge-std with node_modules
noisekit committed Jan 30, 2025
commit 870d16bd4a63bcfa360e31333ff872aeb0a35ae9
8 changes: 5 additions & 3 deletions markets/treasury-market/package.json
Original file line number Diff line number Diff line change
@@ -15,10 +15,10 @@
"scripts": {
"build:contracts": "hardhat compile --force && yarn storage:dump && CANNON_REGISTRY_PRIORITY=local hardhat cannon:build",
"storage:dump": "hardhat storage:dump --output storage.new.dump.json",
"build": "rm -rf lib && forge install foundry-rs/forge-std --no-git && yarn build:contracts",
"build-testable": "rm -rf lib && forge install foundry-rs/forge-std --no-git && cannon build cannonfile.test.toml --write-script script/Deploy.sol --write-script-format foundry --wipe",
"build": "yarn build:contracts",
"build-testable": "cannon build cannonfile.test.toml --write-script script/Deploy.sol --write-script-format foundry --wipe",
"storage:verify": " hardhat storage:verify",
"test": "rm -rf lib && forge install foundry-rs/forge-std --no-git && forge test",
"test": "forge test",
"coverage": "hardhat coverage --network hardhat",
"clean": "hardhat clean",
"compile-contracts": "hardhat compile",
@@ -32,11 +32,13 @@
"@synthetixio/common-config": "workspace:*",
"@synthetixio/docgen": "workspace:*",
"@synthetixio/main": "workspace:*",
"forge-std": "github:foundry-rs/forge-std#master",
"hardhat": "^2.19.5",
"solidity-docgen": "^0.6.0-beta.36"
},
"depcheck": {
"ignoreMatches": [
"forge-std",
"@synthetixio/main"
]
}
1 change: 1 addition & 0 deletions markets/treasury-market/remappings.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,4 @@
@synthetixio/core-modules=../../utils/core-modules
@synthetixio/main=../../protocol/synthetix
@synthetixio/oracle-manager=../../protocol/oracle-manager
forge-std=../../node_modules/forge-std/src
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -3558,6 +3558,7 @@ __metadata:
"@synthetixio/common-config": "workspace:*"
"@synthetixio/docgen": "workspace:*"
"@synthetixio/main": "workspace:*"
forge-std: "github:foundry-rs/forge-std#master"
hardhat: "npm:^2.19.5"
solidity-docgen: "npm:^0.6.0-beta.36"
languageName: unknown