create_pool: TxDescriptor<
    {
        admin?: SS58String;
        expiry: TraitsScheduleDispatchTime;
        reward_asset_id: {
            interior: Enum<
                {
                    Here: undefined;
                    X1: Enum<
                        {
                            AccountId32: { id: FixedSizeBinary<32>; network?: Enum<(...)> };
                            AccountIndex64: { index: bigint; network?: Enum<(...)> };
                            AccountKey20: { key: FixedSizeBinary<20>; network?: Enum<(...)> };
                            GeneralIndex: bigint;
                            GeneralKey: { data: FixedSizeBinary<32>; length: number };
                            GlobalConsensus: Enum<
                                {
                                    BitcoinCash: undefined;
                                    BitcoinCore: undefined;
                                    ByFork: {
                                        block_hash: FixedSizeBinary<(...)>;
                                        block_number: bigint;
                                    };
                                    ByGenesis: FixedSizeBinary<32>;
                                    Ethereum: { chain_id: bigint };
                                    Kusama: undefined;
                                    Polkadot: undefined;
                                    PolkadotBulletin: undefined;
                                },
                            >;
                            OnlyChild: undefined;
                            PalletInstance: number;
                            Parachain: number;
                            Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                        },
                    >;
                    X2: FixedSizeArray<
                        2,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X3: FixedSizeArray<
                        3,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X4: FixedSizeArray<
                        4,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X5: FixedSizeArray<
                        5,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X6: FixedSizeArray<
                        6,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X7: FixedSizeArray<
                        7,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X8: FixedSizeArray<
                        8,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                },
            >;
            parents: number;
        };
        reward_rate_per_block: bigint;
        staked_asset_id: {
            interior: Enum<
                {
                    Here: undefined;
                    X1: Enum<
                        {
                            AccountId32: { id: FixedSizeBinary<32>; network?: Enum<(...)> };
                            AccountIndex64: { index: bigint; network?: Enum<(...)> };
                            AccountKey20: { key: FixedSizeBinary<20>; network?: Enum<(...)> };
                            GeneralIndex: bigint;
                            GeneralKey: { data: FixedSizeBinary<32>; length: number };
                            GlobalConsensus: Enum<
                                {
                                    BitcoinCash: undefined;
                                    BitcoinCore: undefined;
                                    ByFork: {
                                        block_hash: FixedSizeBinary<(...)>;
                                        block_number: bigint;
                                    };
                                    ByGenesis: FixedSizeBinary<32>;
                                    Ethereum: { chain_id: bigint };
                                    Kusama: undefined;
                                    Polkadot: undefined;
                                    PolkadotBulletin: undefined;
                                },
                            >;
                            OnlyChild: undefined;
                            PalletInstance: number;
                            Parachain: number;
                            Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                        },
                    >;
                    X2: FixedSizeArray<
                        2,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X3: FixedSizeArray<
                        3,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X4: FixedSizeArray<
                        4,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X5: FixedSizeArray<
                        5,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X6: FixedSizeArray<
                        6,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X7: FixedSizeArray<
                        7,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                    X8: FixedSizeArray<
                        8,
                        Enum<
                            {
                                AccountId32: { id: FixedSizeBinary<32>; network?: ... };
                                AccountIndex64: { index: bigint; network?: ... };
                                AccountKey20: { key: FixedSizeBinary<20>; network?: ... };
                                GeneralIndex: bigint;
                                GeneralKey: { data: FixedSizeBinary<32>; length: number };
                                GlobalConsensus: Enum<
                                    {
                                        BitcoinCash: undefined;
                                        BitcoinCore: undefined;
                                        ByFork: { block_hash: ...; block_number: ... };
                                        ByGenesis: FixedSizeBinary<(...)>;
                                        Ethereum: { chain_id: ... };
                                        Kusama: undefined;
                                        Polkadot: undefined;
                                        PolkadotBulletin: undefined;
                                    },
                                >;
                                OnlyChild: undefined;
                                PalletInstance: number;
                                Parachain: number;
                                Plurality: { id: XcmV3JunctionBodyId; part: XcmV2JunctionBodyPart };
                            },
                        >,
                    >;
                },
            >;
            parents: number;
        };
    },
>

Create a new reward pool.

Parameters:

  • origin: must be Config::CreatePoolOrigin;
  • staked_asset_id: the asset to be staked in the pool;
  • reward_asset_id: the asset to be distributed as rewards;
  • reward_rate_per_block: the amount of reward tokens distributed per block;
  • expiry: the block number at which the pool will cease to accumulate rewards. The [DispatchTime::After] variant evaluated at the execution time.
  • admin: the account allowed to extend the pool expiration, increase the rewards rate and receive the unutilized reward tokens back after the pool completion. If None, the caller is set as an admin.