Skip to content

Commit

Permalink
chore: refining static fees importing
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Sep 17, 2023
1 parent 6c448ee commit 3ffb4c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions src/clients/SubtopiaRegistryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ export class SubtopiaRegistryClient {
);
}

public async getProductCreationPlatformFee(
priceInCents: number
): Promise<number> {
public async getProductCreationPlatformFee(): Promise<number> {
const priceInCents = PRODUCT_CREATION_PLATFORM_FEE_CENTS;
const computePlatformFeeAtc = new AtomicTransactionComposer();
computePlatformFeeAtc.addMethodCall({
appID: this.oracleID,
Expand Down Expand Up @@ -475,9 +474,7 @@ export class SubtopiaRegistryClient {
oracleAdminState.valueRaw
);
const feeAmount = await this.getProductCreationFee(coinID);
const platformFeeAmount = await this.getProductCreationPlatformFee(
PRODUCT_CREATION_PLATFORM_FEE_CENTS
);
const platformFeeAmount = await this.getProductCreationPlatformFee();

const createInfraAtc = new AtomicTransactionComposer();
createInfraAtc.addMethodCall({
Expand Down

0 comments on commit 3ffb4c7

Please sign in to comment.