Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.1.14",
"version": "4.1.15",
"private": true,
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk-core",
"version": "4.1.14",
"version": "4.1.15",
"description": "the core of acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-homa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk-homa",
"version": "4.1.14",
"version": "4.1.15",
"description": "the homa sub module in acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-loan/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk-loan",
"version": "4.1.14",
"version": "4.1.15",
"description": "the loan sub module in acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-payment/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk-payment",
"version": "4.1.14",
"version": "4.1.15",
"description": "the payment acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk-swap",
"version": "4.1.14",
"version": "4.1.15",
"description": "the swap sub module in acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/sdk",
"version": "4.1.14",
"version": "4.1.15",
"description": "acala network sdk",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/sdk/src/incentive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@ export class Incentive implements BaseSDK {
);
});

// subscribe all pool infomations
// subscribe all pool information
private poolInfos$ = memoize((): Observable<BaseIncentivePool[]> => {
return this.storages.poolInfos().observable.pipe(
map((data) => {
// omit NomineesElection
return data.filter((item) => !(item[0].args[0] as any).isNomineesElection);
}),
map((data) => {
const allRewardTokens = data.flatMap((item) =>
Array.from(item[1].rewards.entries()).map(([key]) => forceToCurrencyName(key))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export function getDeductionEndtimeConfigs(
let call: CallFunction | null = null;

try {
call = api.registry.createType('Call', data.asInline.toHex()) as unknown as CallFunction;
if (data.isInline) {
call = api.registry.createType('Call', data.asInline.toHex()) as unknown as CallFunction;
}
} catch (error) {
console.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/wormhole-portal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/wormhole-portal",
"version": "4.1.14",
"version": "4.1.15",
"description": "the wormhole wrapper for acala/karura network",
"author": "Acala Developers <[email protected]>",
"license": "Apache-2.0",
Expand Down
Loading