change getAmountByORN lockAmount type

This commit is contained in:
TheJuze
2023-11-13 12:26:06 +03:00
parent 0a0eaf2958
commit a1da0304c8
3 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ class IndexerService {
return BigNumber(amount).dividedBy(this.getK(timestamp));
};
readonly getAmountByORN = (amountToken: number, timeLock: number) => {
readonly getAmountByORN = (amountToken: string, timeLock: number) => {
const alpha = 730 / (30 - Math.sqrt(730 / 7)) ** (1 / 3);
const timestamp = Date.now() / 1000;