Skip to content

Add Moar Market adapter #1898

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

Merged
merged 2 commits into from
Jun 4, 2025
Merged

Conversation

lumos42
Copy link
Contributor

@lumos42 lumos42 commented Jun 3, 2025

Adds an adapter for Moar Market. Numbers are fetched from on-chain view functions, and price calculated using defillama sdk's ChainApi.

@llamatester
Copy link

The moar-market adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 22 passed, 22 total
Snapshots: 0 total
Time: 0.259 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬─────────────┬─────────┬───────────────┬────────────────────┬───────────┬────────────────────┬─────────────────┬───────────────────┬────────────────────┬──────────────┬────────┬───────────────────┬──────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────┐
│ (index) │ pool        │ chain   │ project       │ apyBase            │ apyReward │ apyBaseBorrow      │ apyRewardBorrow │ totalSupplyUsd    │ totalBorrowUsd     │ rewardTokens │ symbol │ tvlUsd            │ underlyingTokens                                                         │ url                                 │
├─────────┼─────────────┼─────────┼───────────────┼────────────────────┼───────────┼────────────────────┼─────────────────┼───────────────────┼────────────────────┼──────────────┼────────┼───────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────┤
│ 0       │ 'Moar APT'  │ 'aptos' │ 'moar-market' │ 2.6038816          │ null      │ 3.2548519999999996 │ null            │ 918534.5374797975 │ 131728.5033768765  │ []           │ 'APT'  │ 786806.0341029209 │ [ '0xa' ]                                                                │ 'https://app.moar.market/lend/apt'  │
│ 1       │ 'Moar USDC' │ 'aptos' │ 'moar-market' │ 13.992790399999999 │ null      │ 17.490987999999998 │ null            │ 518587.7987987318 │ 427694.72190093633 │ []           │ 'USDC' │ 90893.07689779549 │ [ '0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b' ] │ 'https://app.moar.market/lend/usdc' │
└─────────┴─────────────┴─────────┴───────────────┴────────────────────┴───────────┴────────────────────┴─────────────────┴───────────────────┴────────────────────┴──────────────┴────────┴───────────────────┴──────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────┘

@slasher125
Copy link
Collaborator

@lumos42 pls use address ids or similar for pool values (should be lowercase, no empty space)

@llamatester
Copy link

The moar-market adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 22 passed, 22 total
Snapshots: 0 total
Time: 0.262 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────────────────────────────┬─────────┬───────────────┬────────────────────┬───────────┬───────────────┬─────────────────┬───────────────────┬───────────────────┬──────────────┬────────┬───────────────────┬──────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────┐
│ (index) │ pool                                                                       │ chain   │ project       │ apyBase            │ apyReward │ apyBaseBorrow │ apyRewardBorrow │ totalSupplyUsd    │ totalBorrowUsd    │ rewardTokens │ symbol │ tvlUsd            │ underlyingTokens                                                         │ url                                 │
├─────────┼────────────────────────────────────────────────────────────────────────────┼─────────┼───────────────┼────────────────────┼───────────┼───────────────┼─────────────────┼───────────────────┼───────────────────┼──────────────┼────────┼───────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────┤
│ 0       │ '0x7b11a1658b4f36214b60a51d02dd35d3b5703f1552f8b7e4d045c0a13f8259c3_aptos' │ 'aptos' │ 'moar-market' │ 2.5337288000000004 │ null      │ 3.167161      │ null            │ 941614.3263666384 │ 125601.7018174592 │ []           │ 'APT'  │ 816012.6245491792 │ [ '0xa' ]                                                                │ 'https://app.moar.market/lend/apt'  │
│ 1       │ '0x22dbe22abf689d8a0f751cab7a32fe5570c49b53fcccd4e5d709b269efda554a_aptos' │ 'aptos' │ 'moar-market' │ 15.528765600000002 │ null      │ 19.410957     │ null            │ 519460.218343766  │ 458334.6619975466 │ []           │ 'USDC' │ 61125.5563462194  │ [ '0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b' ] │ 'https://app.moar.market/lend/usdc' │
└─────────┴────────────────────────────────────────────────────────────────────────────┴─────────┴───────────────┴────────────────────┴───────────┴───────────────┴─────────────────┴───────────────────┴───────────────────┴──────────────┴────────┴───────────────────┴──────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────┘

@slasher125 slasher125 merged commit d6b86fc into DefiLlama:master Jun 4, 2025
1 check 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