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

add polter base #1934

Merged
merged 3 commits into from
Sep 21, 2024
Merged

add polter base #1934

merged 3 commits into from
Sep 21, 2024

Conversation

whichghost
Copy link
Contributor

No description provided.

@llamatester
Copy link

The polter adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees polter

🦙 Running POLTER adapter 🦙
---------------------------------------------------
Start Date:	Fri, 20 Sep 2024 13:54:31 GMT
End Date:	Sat, 21 Sep 2024 13:54:31 GMT
---------------------------------------------------

TypeError: Cannot destructure property 'gecko' of 'tokens[chain][reward.rewardsToken]' as it is undefined.
    at /home/runner/work/dimension-adapters/dimension-adapters/fees/polter/index.ts:119:12
    at Array.forEach (<anonymous>)
    at fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/polter/index.ts:118:16)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:51:18)
    at async Promise.all (index 1)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:75:21 {
  chain: 'base'
}

@llamatester
Copy link

The polter adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees polter

🦙 Running POLTER adapter 🦙
---------------------------------------------------
Start Date:	Fri, 20 Sep 2024 14:01:31 GMT
End Date:	Sat, 21 Sep 2024 14:01:31 GMT
---------------------------------------------------

TypeError: Cannot destructure property 'gecko' of 'tokens[chain][reward.rewardsToken]' as it is undefined.
    at /home/runner/work/dimension-adapters/dimension-adapters/fees/polter/index.ts:119:12
    at Array.forEach (<anonymous>)
    at fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/polter/index.ts:118:16)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:51:18)
    at async Promise.all (index 1)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:75:21 {
  chain: 'base'
}

@llamatester
Copy link

The polter adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees polter

🦙 Running POLTER adapter 🦙
---------------------------------------------------
Start Date:	Fri, 20 Sep 2024 14:28:42 GMT
End Date:	Sat, 21 Sep 2024 14:28:42 GMT
---------------------------------------------------

FANTOM 👇
Backfill start time: 29/1/2024
Daily fees: 1.48 k
└─ Methodology: lockers' revenue = stakers' revenue + 50% penalty from early exit
Daily revenue: 738
└─ Methodology: depositors' revenue from borrow interests
End timestamp: 1726928921 (2024-09-21T14:28:41.000Z)


BASE 👇
Backfill start time: 17/8/1970
Daily fees: 427
└─ Methodology: lockers' revenue = stakers' revenue + 50% penalty from early exit
Daily revenue: 213
└─ Methodology: depositors' revenue from borrow interests
End timestamp: 1726928921 (2024-09-21T14:28:41.000Z)

@dtmkeng dtmkeng merged commit d1892cc into DefiLlama:master Sep 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants