Skip to content

Commit

Permalink
feat: priceOracle for crvUSD pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
5lliot committed Oct 6, 2023
1 parent 08102cf commit 3f6b4f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/Gearbox-protocol/third-eye
go 1.19

require (
github.com/Gearbox-protocol/sdk-go v0.0.0-20230922143533-4acc0d43eb68
github.com/Gearbox-protocol/sdk-go v0.0.0-20231006151232-7b803d31bbe7
github.com/ethereum/go-ethereum v1.10.17
github.com/go-playground/validator/v10 v10.4.1
github.com/google/go-cmp v0.5.8
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/Gearbox-protocol/sdk-go v0.0.0-20230831171118-d581762b80f3 h1:kGfRTDLJqz1aEUHHfhAjduHbyoFEc55zxsOMcRYZSJ8=
github.com/Gearbox-protocol/sdk-go v0.0.0-20230831171118-d581762b80f3/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Gearbox-protocol/sdk-go v0.0.0-20230922143533-4acc0d43eb68 h1:j7lcp1BDD93AOF16BjbMEkeQZw8HCOKD5TFnaQtcg60=
github.com/Gearbox-protocol/sdk-go v0.0.0-20230922143533-4acc0d43eb68/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231006151232-7b803d31bbe7 h1:DSojCt4rvoQZiPok/h4vji0ix/dPloOOpsn8KVVe00Q=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231006151232-7b803d31bbe7/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
Expand Down
8 changes: 8 additions & 0 deletions models/aggregated_block_feed/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ func getDepGraph() map[string][]string {
"LDOETH": {"LDO", "WETH"},
"cvxLDOETH": {"LDO", "WETH"},
"stkcvxLDOETH": {"LDO", "WETH"},

//
"crvUSDUSDC": {"crvUSD", "USDC"},
"crvUSDUSDT": {"crvUSD", "USDT"},
"crvUSDFRAX": {"crvUSD", "ETH", "FRAX"},
"crvUSDETHCRV": {"crvUSD", "ETH", "CRV"},
"cvxcrvUSDETHCRV": {"crvUSD", "ETH", "CRV"},
"stkcvxcrvUSDETHCRV": {"crvUSD", "ETH", "CRV"},
}
return depGraph
}
Expand Down
1 change: 1 addition & 0 deletions models/price_oracle/on_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (mdl *PriceOracle) checkPriceFeedContract(discoveredAt int64, oracle string
"PRICEFEED_crvCVXETH",
"PRICEFEED_crvUSDTWBTCWETH",
"PRICEFEED_LDOETH",
"PRICEFEED_crvUSDETHCRV",
}, description) {
// https://github.com/Gearbox-protocol/integrations-v2/tree/main/contracts/oracles/curve
return ds.CurvePF, false, nil
Expand Down

0 comments on commit 3f6b4f4

Please sign in to comment.