Skip to content

Commit

Permalink
Merge pull request #344 from dominant-strategies/fix-rate-rpc
Browse files Browse the repository at this point in the history
Fix Quai/Qi RPC rate methods
  • Loading branch information
alejoacosta74 authored Nov 1, 2024
2 parents fb5e039 + 4a1073e commit cee1e29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/abstract-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,13 +636,13 @@ export type PerformActionRequest =
| {
method: 'getQiRateAtBlock';
blockTag: BlockTag;
amt: number;
amt: string;
zone: Zone;
}
| {
method: 'getQuaiRateAtBlock';
blockTag: BlockTag;
amt: number;
amt: string;
zone: Zone;
}
| {
Expand Down Expand Up @@ -900,7 +900,7 @@ export class AbstractProvider<C = FetchRequest> implements Provider {
await this.#perform({
method: 'getQuaiRateAtBlock',
blockTag: resolvedBlockTag,
amt: Number(amt),
amt: toQuantity(String(amt)),
zone: zone,
}),
);
Expand Down Expand Up @@ -982,7 +982,7 @@ export class AbstractProvider<C = FetchRequest> implements Provider {
await this.#perform({
method: 'getQiRateAtBlock',
blockTag: resolvedBlockTag,
amt: Number(amt),
amt: toQuantity(String(amt)),
zone: zone,
}),
);
Expand Down

0 comments on commit cee1e29

Please sign in to comment.