2

We would like to know What parameter should we pass in as “extra” for bondExtra(extra)? And what does it mean for the type “PalletNominationPoolsBondExtra”

nominationPools

Thank you, the Starfish team

1 Answer 1

3

This is the definition of the type PalletNominationPoolsBondExtra

  interface PalletNominationPoolsBondExtra extends Enum {
    readonly isFreeBalance: boolean;
    readonly asFreeBalance: u128;
    readonly isRewards: boolean;
    readonly type: 'FreeBalance' | 'Rewards';
  }

For that call you have to select if you want to bond this additional funds from either the free balance of the account, of from the accumulated rewards.

If you try to send the Extrinsic using PolkadotJS UI you can see that you can pick between FreeBalance or Rewards and pick the amount. See the image below.

enter image description here

1
  • You can also read about it in the Rust docs here.
    – kianenigma
    Commented Jan 13, 2023 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.