This commit is contained in:
Adrian Brzeziński 2023-12-04 13:18:53 +01:00 committed by GitHub
parent 9d44766b8f
commit 5ac3b00a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 9 deletions

View File

@ -123,7 +123,7 @@ const CreateSwitchboardOracleModal = ({
if (type === 'raydium') {
const info = await connection.getAccountInfo(new PublicKey(poolPk))
const poolState = LIQUIDITY_STATE_LAYOUT_V4.decode(info!.data)
return poolState.quoteMint.toBase58() === USDC_MINT || false
return poolState.baseMint.toBase58() === USDC_MINT || false
}
return false
}
@ -153,7 +153,7 @@ const CreateSwitchboardOracleModal = ({
])
let onFailureTaskDesc
if (isReversePool) {
if (!isReversePool) {
onFailureTaskDesc = [
{
lpExchangeRateTask: {
@ -233,13 +233,7 @@ const CreateSwitchboardOracleModal = ({
},
},
],
onFailure: [
{
lpExchangeRateTask: {
[poolPropertyName]: poolAddress,
},
},
],
onFailure: onFailureTaskDesc,
},
},
{