Skip to content

Commit

Permalink
ci: fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
theblockstalk committed Oct 9, 2024
1 parent a1ea163 commit 3c061c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/cli/msig/vestingMigrateAllocate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { NameType } from '@wharfkit/antelope';
import { StandardProposalOptions, createProposal, executeProposal } from '.';
import { ActionData, assetToAmount, VestingContract } from '../../sdk/services/blockchain';
import {
ActionData,
assetToAmount,
LEOS_SEED_LATE_ROUND_PRICE,
LEOS_SEED_ROUND_PRICE,
VestingContract,
} from '../../sdk/services/blockchain';

// @ts-expect-error args unused
export async function vestingMigrate(args: any, options: StandardProposalOptions) {
Expand Down Expand Up @@ -44,13 +50,13 @@ async function createAccountActions(account: NameType): Promise<ActionData[]> {
if (oldCategory === 1 || oldCategory === 2) {
if (oldCategory === 1) {
const oldLeosPrice = 0.002;
const newLeosPrice = 0.0002;
const newLeosPrice = LEOS_SEED_ROUND_PRICE;
const amount = assetToAmount(allocation.tokens_allocated);

newAmount = (amount * oldLeosPrice) / newLeosPrice;
} else {
const oldLeosPrice = 0.004;
const newLeosPrice = 0.0004;
const newLeosPrice = LEOS_SEED_LATE_ROUND_PRICE;
const amount = assetToAmount(allocation.tokens_allocated);

newAmount = (amount * oldLeosPrice) / newLeosPrice;
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/services/blockchain/contracts/TonomyContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function calculateRamPrice(): number {
return LEOS_PUBLIC_SALE_PRICE / totalRamPriceBytes; // bytes / LEOS
}

export const RAM_PRICE = calculateRamPrice(); // bytes/token
export const RAM_PRICE = calculateRamPrice(); // bytes / token
export const RAM_FEE = 0.25 / 100; // 0.25%
export const TOTAL_RAM_AVAILABLE = 8 * 1024 * 1024 * 1024; // 8 GB

Expand Down

0 comments on commit 3c061c5

Please sign in to comment.