1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
This commit is contained in:
mihaisc 2022-06-14 03:57:06 -07:00 committed by GitHub
parent 89a63f7cb2
commit 82e5f60e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,9 @@ export const opcQuery = gql`
opc(id: 1) {
swapOceanFee
swapNonOceanFee
approvedTokens
approvedTokens {
id
}
id
}
}

View File

@ -36,7 +36,7 @@ function MarketMetadataProvider({
opcData.push({
chainId: appConfig.chainIdsSupported[i],
approvedTokens: response.data?.opc.approvedTokens,
approvedTokens: response.data?.opc.approvedTokens?.map((x) => x.id),
swapApprovedFee: response.data?.opc.swapOceanFee,
swapNotApprovedFee: response.data?.opc.swapNonOceanFee
} as OpcFee)