Skip to content

Call exception for getClaimableRewardTokens() on Network.POLYGON #544

@peterpolman

Description

@peterpolman

https://github.com/balancer/balancer-sdk/blob/develop/balancer-js/examples/pools/rewards/claim-pools-rewards.ts
Running the given example for Network.MAINNET with a my Infura mainnet RPC returns the expected result 👍

However, changing the SDK config to Polygon results in an exception where I would at least expect an empty array when calling getClaimableRewardTokens(userAddress) 😢

const balancer = new BalancerSDK({
  network: Network.POLYGON,
  rpcUrl: `https://polygon-mainnet.infura.io/v3/XXX`,
});
const result = await balancer.claimService?.getClaimableRewardTokens("0x549c660ce2B988F588769d6AD87BE801695b2be3");

Result:

Uncaught (in promise) Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0xa1B2b503959aedD81512C37e9dce48164ec6a94d","data":"0x252dba42........

This is the line that throws the exception:

const [, res] = await this.multicall.callStatic.aggregate(payload);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions