Skip to content

Commit

Permalink
fix(default-price-feed-config): specify pool decimals (#2410)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Pai <[email protected]>
  • Loading branch information
nicholaspai authored Jan 13, 2021
1 parent d782c56 commit d2db2d9
Showing 1 changed file with 36 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,25 @@ const defaultConfigs = {
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "bittrex", pair: "ustusdt" },
{ type: "cryptowatch", exchange: "uniswap-v2", pair: "ustusdt" }
{
type: "uniswap",
uniswapAddress: "0xc50ef7861153c51d383d9a7d48e6c9467fb90c38",
twapLength: 2,
poolDecimals: 6
}
]
},
{
type: "medianizer",
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "binance", pair: "busdusdt" },
{ type: "cryptowatch", exchange: "uniswap-v2", pair: "busdusdt" }
{
type: "uniswap",
uniswapAddress: "0xa0abda1f980e03d7eadb78aed8fc1f2dd0fe83dd",
twapLength: 2,
poolDecimals: 6
}
]
},
{
Expand Down Expand Up @@ -141,15 +151,25 @@ const defaultConfigs = {
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "bittrex", pair: "ustusdt" },
{ type: "cryptowatch", exchange: "uniswap-v2", pair: "ustusdt" }
{
type: "uniswap",
uniswapAddress: "0xc50ef7861153c51d383d9a7d48e6c9467fb90c38",
twapLength: 2,
poolDecimals: 6
}
]
},
{
type: "medianizer",
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "binance", pair: "busdusdt" },
{ type: "uniswap", uniswapAddress: "0xa0abda1f980e03d7eadb78aed8fc1f2dd0fe83dd", twapLength: 2 }
{
type: "uniswap",
uniswapAddress: "0xa0abda1f980e03d7eadb78aed8fc1f2dd0fe83dd",
twapLength: 2,
poolDecimals: 6
}
]
},
{
Expand Down Expand Up @@ -197,15 +217,25 @@ const defaultConfigs = {
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "bittrex", pair: "ustusdt" },
{ type: "cryptowatch", exchange: "uniswap-v2", pair: "ustusdt" }
{
type: "uniswap",
uniswapAddress: "0xc50ef7861153c51d383d9a7d48e6c9467fb90c38",
twapLength: 2,
poolDecimals: 6
}
]
},
{
type: "medianizer",
computeMean: true,
medianizedFeeds: [
{ type: "cryptowatch", exchange: "binance", pair: "busdusdt" },
{ type: "cryptowatch", exchange: "uniswap-v2", pair: "busdusdt" }
{
type: "uniswap",
uniswapAddress: "0xa0abda1f980e03d7eadb78aed8fc1f2dd0fe83dd",
twapLength: 2,
poolDecimals: 6
}
]
},
{
Expand Down

0 comments on commit d2db2d9

Please sign in to comment.