-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a575372
commit 5bae28c
Showing
31 changed files
with
642 additions
and
701 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"cSpell.words": [ | ||
"biomejs", | ||
"codegen", | ||
"judgements", | ||
"khala", | ||
"phala", | ||
"poolv2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 22 additions & 38 deletions
60
db/migrations/1708273517919-Data.js → db/migrations/1708547433185-Data.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/@subsquid/big-decimal/bigdecimal.js b/node_modules/@subsquid/big-decimal/bigdecimal.js | ||
index a9d3887..a641179 100644 | ||
--- a/node_modules/@subsquid/big-decimal/bigdecimal.js | ||
+++ b/node_modules/@subsquid/big-decimal/bigdecimal.js | ||
@@ -7,7 +7,8 @@ const Base = Big() | ||
|
||
|
||
// adjust settings | ||
-Base.DP = 80 | ||
+Base.DP = 12 | ||
+Base.RM = 0 | ||
Base.NE = -19 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const DUMP_BLOCK = 3000000 | ||
export const INITIAL_BLOCK = 3000000 | ||
export const BASE_POOL_ACCOUNT = | ||
'42qnPyfw3sbWMGGtTPPc2YFNZRKPGXswRszyQQjGs2FDxdim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {BigDecimal} from '@subsquid/big-decimal' | ||
import {Account} from '../model' | ||
|
||
export const getAccount = (m: Map<string, Account>, id: string): Account => { | ||
let acc = m.get(id) | ||
if (acc == null) { | ||
acc = new Account({ | ||
id, | ||
stakePoolValue: BigDecimal(0), | ||
stakePoolNftCount: 0, | ||
stakePoolAvgAprMultiplier: BigDecimal(0), | ||
vaultValue: BigDecimal(0), | ||
vaultNftCount: 0, | ||
vaultAvgAprMultiplier: BigDecimal(0), | ||
cumulativeStakePoolOwnerRewards: BigDecimal(0), | ||
cumulativeVaultOwnerRewards: BigDecimal(0), | ||
}) | ||
m.set(id, acc) | ||
} | ||
return acc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.