Skip to content

Commit 9ccfcca

Browse files
authored
Merge pull request #113 from tinymanorg/fix/order-platform-fee-rate
Fix order platform fee rate tiny power threshold key
2 parents 36a279f + d47c6d7 commit 9ccfcca

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tinymanorg/tinyman-js-sdk",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"description": "Tinyman JS SDK",
55
"author": "Tinyman Core Team",
66
"license": "MIT",

src/order/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {encodeString, intToBytes, joinByteArrays} from "../util/util";
2121
import {
2222
APP_LATEST_VERSION_KEY,
2323
APP_VERSION_KEY,
24+
GOVERNOR_FEE_RATE_POWER_THRESHOLD_KEY,
2425
GOVERNOR_ORDER_FEE_RATE_KEY,
2526
MINIMUM_PUT_ORDER_TRANSACTION_COUNT,
2627
ORDER_APP_EXTRA_PAGES,
@@ -685,7 +686,7 @@ class OrderingClient extends TinymanBaseClient<number | null, algosdk.Address |
685686
*/
686687
async getPlatformFeeRate(tinyPower: number | null): Promise<bigint> {
687688
const thresholdTinyPower = await this.getGlobal(
688-
TOTAL_ORDER_COUNT_KEY,
689+
GOVERNOR_FEE_RATE_POWER_THRESHOLD_KEY,
689690
0,
690691
this.registryAppId
691692
);

0 commit comments

Comments
 (0)