Skip to content

add: multipli yield #1792

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 4 commits into from
Apr 6, 2025
Merged

Conversation

austinjfi
Copy link
Contributor

Hey team, we'd like to add yield for our project Multipli.fi.
https://defillama.com/protocol/multipli.fi

The yield is generated on another exchange, so we have to use api's to get this data.

@llamatester
Copy link

Error while running multipli adapter:

Test Suites: 1 failed, 1 total
Tests: 5 failed, 9 passed, 14 total
Snapshots: 0 total
Time: 0.362 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬───────────────┬────────────┬───────────────┬─────────┐
│ (index) │ pool                                         │ symbol  │ project       │ chain      │ tvlUsd        │ apy     │
├─────────┼──────────────────────────────────────────────┼─────────┼───────────────┼────────────┼───────────────┼─────────┤
│ 0       │ '0xE9bE066a32c854dBbBc797823c445ec3fB0C42Ee' │ 'xusdc' │ 'Multipli.fi' │ 'ethereum' │ '55171144.12' │ '17.04' │
│ 1       │ '0x721E483FE764d3A6B636aEB87Ab391d23E6ffD3B' │ 'xusdt' │ 'Multipli.fi' │ 'ethereum' │ '22018295.97' │ '17.04' │
└─────────┴──────────────────────────────────────────────┴─────────┴───────────────┴────────────┴───────────────┴─────────┘
}

@llamatester
Copy link

Error while running multipli adapter:

Test Suites: 1 failed, 1 total
Tests: 1 failed, 13 passed, 14 total
Snapshots: 0 total
Time: 0.3 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬───────────────┬────────────┬─────────────┬───────┐
│ (index) │ pool                                         │ symbol  │ project       │ chain      │ tvlUsd      │ apy   │
├─────────┼──────────────────────────────────────────────┼─────────┼───────────────┼────────────┼─────────────┼───────┤
│ 0       │ '0xE9bE066a32c854dBbBc797823c445ec3fB0C42Ee' │ 'xusdc' │ 'Multipli.fi' │ 'ethereum' │ 55171144.12 │ 17.04 │
│ 1       │ '0x721E483FE764d3A6B636aEB87Ab391d23E6ffD3B' │ 'xusdt' │ 'Multipli.fi' │ 'ethereum' │ 22016093.04 │ 17.04 │
└─────────┴──────────────────────────────────────────────┴─────────┴───────────────┴────────────┴─────────────┴───────┘
}

@llamatester
Copy link

Error while running multipli adapter:

Test Suites: 1 failed, 1 total
Tests: 1 failed, 13 passed, 14 total
Snapshots: 0 total
Time: 0.294 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬───────────────┬────────────┬─────────────┬───────┐
│ (index) │ pool                                         │ symbol  │ project       │ chain      │ tvlUsd      │ apy   │
├─────────┼──────────────────────────────────────────────┼─────────┼───────────────┼────────────┼─────────────┼───────┤
│ 0       │ '0xE9bE066a32c854dBbBc797823c445ec3fB0C42Ee' │ 'xusdc' │ 'multipli.fi' │ 'ethereum' │ 55171144.12 │ 17.04 │
│ 1       │ '0x721E483FE764d3A6B636aEB87Ab391d23E6ffD3B' │ 'xusdt' │ 'multipli.fi' │ 'ethereum' │ 22018295.97 │ 17.04 │
└─────────┴──────────────────────────────────────────────┴─────────┴───────────────┴────────────┴─────────────┴───────┘
}

@austinjfi
Copy link
Contributor Author

austinjfi commented Mar 29, 2025

Not sure how to fix this test case. Can someone please let me know?

  ● Running multipli Test › Check project field is constant in all pools and if folder name and project field in pool objects matches the information in /protocols slug
    expect(received).toBe(expected) // Object.is equality
    Expected: true
    Received: false
      141 |     expect(
      142 |       protocolsSlug.includes(apy[0].project) && apy[0].project === adapter
    > 143 |     ).toBe(true);
          |       ^
      144 |   });
      145 |
      146 |   describe('Check additional field data rules', () => {
      at Object.toBe (src/adaptors/test.js:143:7)

@slasher125
Copy link
Collaborator

Not sure how to fix this test case. Can someone please let me know?

  ● Running multipli Test › Check project field is constant in all pools and if folder name and project field in pool objects matches the information in /protocols slug
    expect(received).toBe(expected) // Object.is equality
    Expected: true
    Received: false
      141 |     expect(
      142 |       protocolsSlug.includes(apy[0].project) && apy[0].project === adapter
    > 143 |     ).toBe(true);
          |       ^
      144 |   });
      145 |
      146 |   describe('Check additional field data rules', () => {
      at Object.toBe (src/adaptors/test.js:143:7)

gm, the folder name is wrong, needs to match the slug

@llamatester
Copy link

The multipli.fi adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬───────────────┬────────────┬─────────────┬───────┐
│ (index) │ pool                                         │ symbol  │ project       │ chain      │ tvlUsd      │ apy   │
├─────────┼──────────────────────────────────────────────┼─────────┼───────────────┼────────────┼─────────────┼───────┤
│ 0       │ '0xE9bE066a32c854dBbBc797823c445ec3fB0C42Ee' │ 'xusdc' │ 'multipli.fi' │ 'ethereum' │ 55200282.05 │ 15.28 │
│ 1       │ '0x721E483FE764d3A6B636aEB87Ab391d23E6ffD3B' │ 'xusdt' │ 'multipli.fi' │ 'ethereum' │ 22033444.47 │ 15.28 │
└─────────┴──────────────────────────────────────────────┴─────────┴───────────────┴────────────┴─────────────┴───────┘

@austinjfi
Copy link
Contributor Author

Hey @llamatester, thanks for the reply. I've fixed the folder name.

@slasher125
Copy link
Collaborator

The yield is generated on another exchange, so we have to use api's to get this data.

pls provide more details

@austinjfi
Copy link
Contributor Author

Hey @slasher125 , we move funds from the contract to an exchange and use delta neutral strategies to generate yield. The yield generated and/or deposited amount can be withdrawn by users at any time (can be initiated, it will be credited to your wallet within 7 days).
For more info, you can check out the docs.
https://docs.multipli.fi/yield-explanation/execution-for-stables

@slasher125 slasher125 merged commit d997d0a into DefiLlama:master Apr 6, 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