Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VI CUMULATIVE #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
"upload": "sentio upload --skip-deps"
},
"dependencies": {
"@sentio/sdk": "^2.32.5",
"@types/nedb": "^1.8.16",
"nedb": "^1.8.0",
"nedb-async": "^0.1.6",
"sqlite": "^5.1.1",
"sqlite3": "^5.1.7"
"@sentio/sdk": "^2.39.6"
},
"devDependencies": {
"@sentio/cli": "^2.14.2",
"@sentio/cli": "2.18.2",
"typescript": "^5.2.2"
}
}
37 changes: 37 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
type AccountSnapshotLP @entity {
id: ID!
lastUpdatedAt: BigInt!
lastShare: BigInt!
lastCumulativeRate: BigInt!
lastCummulativeRatePenPie: BigInt!
lastSharePenPie: BigInt!
lastCummulativeRateEQB: BigInt!
lastShareEQB: BigInt!
}

type RateSnapshotLP @entity {
id: ID!
lastUpdatedAt: BigInt!
cummulativeRate: BigInt!
cummulativeRatePenPie: BigInt!
cummulativeRateEQB: BigInt!
}

type AccountSnapshotSY @entity {
id: ID!
lastUpdatedAt: BigInt!
lastBalance: BigInt!
}

type AccountSnapshotYT @entity {
id: ID!
lastUpdatedAt: BigInt!
lastImpliedHolding: BigInt!
}

type RerunSnapshot @entity {
id: ID!
updatedAt: BigInt!
ended: Boolean!
}

65 changes: 32 additions & 33 deletions src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
import { EthChainId } from '@sentio/sdk/eth'


export const CONFIG = {
BLOCKCHAIN: EthChainId.ETHEREUM,
BLOCKCHAIN: EthChainId.ETHEREUM,
}

export const MISC_CONSTS = {
ONE_E18: BigInt("1000000000000000000"),
ONE_DAY_IN_MINUTE: 60 * 24,
ZERO_ADDRESS: "0x0000000000000000000000000000000000000000",
MULTICALL_BATCH: 256,
RSETH_POINT_RATE: BigInt("1003580000000000000"),
ONE_E18: BigInt("1000000000000000000"),
ONE_DAY_IN_MINUTE: 60 * 24,
ZERO_ADDRESS: "0x0000000000000000000000000000000000000000",
MULTICALL_BATCH: 256,
RSETH_POINT_RATE: BigInt("1003580000000000000"),
PENDLE_DEFAULT_MULTIPLIER: BigInt(2),
CUTOFF_TIME: BigInt(1719446400), // 27/06 12:00 AM GMT
FULL_EXECUTION_INTERVAL: BigInt(86400),
}


export const PENDLE_POOL_ADDRESSES = {
SY: "0x34349c5569e7b846c3558961552d2202760a9789",
YT: "0x029aad400f6092dc735a65be95102efcc2fe64bf",
LP: "0x445d25a1c31445fb29e65d12da8e0eea38174176",
START_BLOCK: 19516901,
TREASURY: "0x8270400d528c34e1596ef367eedec99080a1b592",
EQB_STAKING: "0xe0402eab6019013e6ba5386559f9ca27735f83c1",
PENPIE_RECEIPT_TOKEN: "0x2053e178a70daa28a40d09563d99aa6abdc82130",
// STAKEDAO_RECEIPT_TOKEN: "0xdd9df6a77b4a4a07875f55ce5cb6b933e52cb30a",
MULTICALL: "0xca11bde05977b3631167028862be2a173976ca11",
LIQUID_LOCKERS: [
{
// Penpie
address: "0x6e799758cee75dae3d84e09d40dc416ecf713652",
receiptToken: "0x2053e178a70daa28a40d09563d99aa6abdc82130",
},
{
// EQB
address: '0x64627901dadb46ed7f275fd4fc87d086cff1e6e3',
receiptToken: "0xe0402eab6019013e6ba5386559f9ca27735f83c1",
},
// { // STAKEDAO
// address: '0xd8fa8dc5adec503acc5e026a98f32ca5c1fa289a',
// receiptToken: '0xdd9df6a77b4a4a07875f55ce5cb6b933e52cb30a',
// }
]
SY: "0x34349c5569e7b846c3558961552d2202760a9789",
YT: "0x029aad400f6092dc735a65be95102efcc2fe64bf",
LP: "0x445d25a1c31445fb29e65d12da8e0eea38174176",
START_BLOCK: 19516901,
END_BLOCK: 20199999,
TREASURY: "0x8270400d528c34e1596ef367eedec99080a1b592",
EQB_STAKING: "0xe0402eab6019013e6ba5386559f9ca27735f83c1",
PENPIE_RECEIPT_TOKEN: "0x2053e178a70daa28a40d09563d99aa6abdc82130",
MULTICALL: "0xca11bde05977b3631167028862be2a173976ca11",
LIQUID_LOCKERS: [
{
// Penpie
name: "PenPie",
address: "0x6e799758cee75dae3d84e09d40dc416ecf713652",
receiptToken: "0x2053e178a70daa28a40d09563d99aa6abdc82130",
},
{
// EQB
name: "EQB",
address: '0x64627901dadb46ed7f275fd4fc87d086cff1e6e3',
receiptToken: "0xe0402eab6019013e6ba5386559f9ca27735f83c1",
},
]
}
Loading