Skip to content

Commit

Permalink
Comment out price checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
piobab committed Aug 16, 2024
1 parent 0fde56f commit 602d647
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions scripts/deploy/base/deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,22 +669,22 @@ export class Deployer {

this.storage.actions.oraclePricesSet.push(oracleConfig.denom)

try {
const oracleResult = (await this.cwClient.queryContractSmart(this.storage.addresses.oracle!, {
price: { denom: oracleConfig.denom },
})) as { price: number; denom: string }

printGreen(
`${this.config.chain.id} :: ${oracleConfig.denom} oracle price: ${JSON.stringify(
oracleResult,
)}`,
)
} catch (e) {
// Querying astroport TWAP can fail if enough TWAP snapshots have not been recorded yet
if (!Object.keys(oracleConfig.price_source).includes('astroport_twap')) {
throw e
}
}
// try {
// const oracleResult = (await this.cwClient.queryContractSmart(this.storage.addresses.oracle!, {
// price: { denom: oracleConfig.denom },
// })) as { price: number; denom: string }

// printGreen(
// `${this.config.chain.id} :: ${oracleConfig.denom} oracle price: ${JSON.stringify(
// oracleResult,
// )}`,
// )
// } catch (e) {
// // Querying astroport TWAP can fail if enough TWAP snapshots have not been recorded yet
// if (!Object.keys(oracleConfig.price_source).includes('astroport_twap')) {
// throw e
// }
// }
}

async executeDeposit() {
Expand Down

0 comments on commit 602d647

Please sign in to comment.