-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* temporary-fix this is a temporary fix, until a long term fix where real is swapped to just btc and the spot things are tbtc * version bump * Use pythFeeds.json instead of extras * Rename settings to pyth_feed_id_btc and pyth_feed_id_tbtc * Fix Use pythFeeds.json instead of extras * fix Perps_Trading.e2e.js * fix Spot_Market_BTC.e2e.js * Add tBTC collateral price before liquidating position (as both eth and tbtc were deposited as collaterals) --------- Co-authored-by: Noisekit <[email protected]>
- Loading branch information
1 parent
9dc2a5e
commit 91f1ec8
Showing
8 changed files
with
62 additions
and
27 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[invoke.OracleManagerProxy_registerNode_pyth_BTC] | ||
description = "Latest Pyth Price. This registers a staleness node that looks to Pyth for a fresh enough price, or otherwise reverts with an ERC-7412 compatible error" | ||
target = ["system.oracle_manager.Proxy"] | ||
func = "registerNode" | ||
args = [ | ||
5, # 5 = pyth aggregator type | ||
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pyth_feed_id_tbtc, false]) %>", | ||
[ | ||
], | ||
] | ||
extra.btc_pyth_oracle_id.event = "NodeRegistered" | ||
extra.btc_pyth_oracle_id.arg = 0 | ||
|
||
[invoke.OracleManagerProxy_registerNode_pyth_offchain_lookup_BTC] | ||
description = "Pyth Off-chain Lookup" | ||
target = ["system.oracle_manager.Proxy"] | ||
func = "registerNode" | ||
args = [ | ||
9, # 9 = PythOffchainLookupNode | ||
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'uint256'], [imports.pyth_erc7412_wrapper.contracts.PythERC7412Wrapper.address, settings.pyth_feed_id_tbtc, settings.default_staleness_tolerance]) %>", | ||
[ | ||
], | ||
] | ||
extra.btc_lookup_oracle_id.event = "NodeRegistered" | ||
extra.btc_lookup_oracle_id.arg = 0 | ||
|
||
# Staleness Node | ||
[invoke.OracleManagerProxy_registerNode_staleness_BTC] | ||
target = ["system.oracle_manager.Proxy"] | ||
func = "registerNode" | ||
args = [ | ||
7, # 7 = staleness circuit breaker | ||
"<%= defaultAbiCoder.encode(['uint256'], [settings.default_staleness_tolerance]) %>", | ||
[ | ||
"<%= extras.btc_pyth_oracle_id %>", | ||
"<%= extras.btc_lookup_oracle_id %>", | ||
], | ||
] | ||
extra.btc_oracle_id.event = "NodeRegistered" | ||
extra.btc_oracle_id.arg = 0 |
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