Skip to content

Conversation

@Klyaus
Copy link
Contributor

@Klyaus Klyaus commented Oct 9, 2025

No description provided.

@llamatester
Copy link

The koalaswap adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬─────────────┬────────────────┬──────────┬────────────────────┬────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────┬───────────────────┐
│ (index) │ pool                                         │ chain   │ project     │ symbol         │ poolMeta │ tvlUsd             │ apyBase                │ underlyingTokens                                                                               │ url                                                                      │ volumeUsd1d       │
├─────────┼──────────────────────────────────────────────┼─────────┼─────────────┼────────────────┼──────────┼────────────────────┼────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼───────────────────┤
│ 0       │ '0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 'unit0' │ 'koalaswap' │ 'KOALA-WUNIT0' │ '1%'     │ 439811.5588687576  │ 59.67717876354484      │ [ '0x2689fAabe22Ec4516d716Da5B5f81e7e3aE379c3', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 56426.50946343615 │
│ 1       │ '0xADB6e5EbaD8d59a21B7FDb850279ee526f81CDaF' │ 'unit0' │ 'koalaswap' │ 'EGG-TN'       │ '0.3%'   │ 63979.80846482909  │ 0.00030991058836971064 │ [ '0x3f496696aa4A55acc3b2EEaa433912d11b74452E', '0x86962661059B0eee859f2869CBB1a780ee1a74E8' ] │ 'https://koalaswap.app/pools/0xADB6e5EbaD8d59a21B7FDb850279ee526f81CDaF' │ 0.18107752790141  │
│ 2       │ '0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 'unit0' │ 'koalaswap' │ 'USDT-WUNIT0'  │ '0.3%'   │ 32098.178210428934 │ 20.850878972600697     │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 5553.024006635492 │
│ 3       │ '0x3a64229DfF067Bd89Cd711458E8AC120336B9783' │ 'unit0' │ 'koalaswap' │ 'EGG-SPICE'    │ '0.3%'   │ 998.8283907227285  │ 0.6677631891424785     │ [ '0x3f496696aa4A55acc3b2EEaa433912d11b74452E', '0x6E9C81Dc479Ef3a69B336F72a78f7427945Cc50b' ] │ 'https://koalaswap.app/pools/0x3a64229DfF067Bd89Cd711458E8AC120336B9783' │ 6.070957355341141 │
│ 4       │ '0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 'unit0' │ 'koalaswap' │ 'WBTC-USDT'    │ '0.3%'   │ 301.22346076016623 │ 0.6235244571684451     │ [ '0x9CE808657ba90C65a2700b1cA5D943eC72834B52', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 1.709942095562194 │
│ 5       │ '0x23efffe256B5E754e386f3e3E65B4D741648b087' │ 'unit0' │ 'koalaswap' │ 'WAVES-EGG'    │ '0.3%'   │ 71.77623763480068  │ 0.13772514021863635    │ [ '0x2c8b6bbE3e110282508036Dd5782776De98A84AB', '0x3f496696aa4A55acc3b2EEaa433912d11b74452E' ] │ 'https://koalaswap.app/pools/0x23efffe256B5E754e386f3e3E65B4D741648b087' │ 0.090215615762294 │
│ 6       │ '0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 'unit0' │ 'koalaswap' │ 'WETH-WUNIT0'  │ '0.3%'   │ 7.002166172858572  │ 0                      │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 0                 │
│ 7       │ '0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 'unit0' │ 'koalaswap' │ 'WETH-USDT'    │ '0.3%'   │ 2.0223902850118938 │ 0                      │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 0                 │
│ 8       │ '0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 'unit0' │ 'koalaswap' │ 'USDT-USDC'    │ '0.05%'  │ 2.005005833392368  │ 0                      │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xEb19000D90f17FFbd3AD9CDB8915D928F4980fD1' ] │ 'https://koalaswap.app/pools/0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 0                 │
│ 9       │ '0x581d026e7486ab7E824EC1244C74398490815599' │ 'unit0' │ 'koalaswap' │ 'uUSDT-uUSDC'  │ '0.01%'  │ 1.394348           │ 0                      │ [ '0x33581bc0eD8566A9C6bB8AE1232128dd0779EB0c', '0x509AacC90F484526A4Ff23cF0272C1ADe2b594d9' ] │ 'https://koalaswap.app/pools/0x581d026e7486ab7E824EC1244C74398490815599' │ 0                 │
└─────────┴──────────────────────────────────────────────┴─────────┴─────────────┴────────────────┴──────────┴────────────────────┴────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────┴───────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The koalaswap adapter exports pools:

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

Nb of pools: 13
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬─────────────┬────────────────┬──────────┬────────────────────┬────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────┬────────────────────┐
│ (index) │ pool                                         │ chain   │ project     │ symbol         │ poolMeta │ tvlUsd             │ apyBase                │ underlyingTokens                                                                               │ url                                                                      │ volumeUsd1d        │
├─────────┼──────────────────────────────────────────────┼─────────┼─────────────┼────────────────┼──────────┼────────────────────┼────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼────────────────────┤
│ 0       │ '0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 'unit0' │ 'koalaswap' │ 'KOALA-WUNIT0' │ '1%'     │ 632024.0371797277  │ 40.786385148894965     │ [ '0x2689fAabe22Ec4516d716Da5B5f81e7e3aE379c3', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 59260.288043225206 │
│ 1       │ '0xADB6e5EbaD8d59a21B7FDb850279ee526f81CDaF' │ 'unit0' │ 'koalaswap' │ 'EGG-TN'       │ '0.3%'   │ 63979.80846482909  │ 0.00030991058836971064 │ [ '0x3f496696aa4A55acc3b2EEaa433912d11b74452E', '0x86962661059B0eee859f2869CBB1a780ee1a74E8' ] │ 'https://koalaswap.app/pools/0xADB6e5EbaD8d59a21B7FDb850279ee526f81CDaF' │ 0.18107752790141   │
│ 2       │ '0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 'unit0' │ 'koalaswap' │ 'USDT-WUNIT0'  │ '0.3%'   │ 32088.42140078485  │ 17.482656521143134     │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 4722.598013258476  │
│ 3       │ '0x3a64229DfF067Bd89Cd711458E8AC120336B9783' │ 'unit0' │ 'koalaswap' │ 'EGG-SPICE'    │ '0.3%'   │ 998.8283907227285  │ 0.6677631891424785     │ [ '0x3f496696aa4A55acc3b2EEaa433912d11b74452E', '0x6E9C81Dc479Ef3a69B336F72a78f7427945Cc50b' ] │ 'https://koalaswap.app/pools/0x3a64229DfF067Bd89Cd711458E8AC120336B9783' │ 6.070957355341141  │
│ 4       │ '0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 'unit0' │ 'koalaswap' │ 'WBTC-USDT'    │ '0.3%'   │ 298.82395964655564 │ 1.2260798267972994     │ [ '0x9CE808657ba90C65a2700b1cA5D943eC72834B52', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 3.325664215157828  │
│ 5       │ '0x23efffe256B5E754e386f3e3E65B4D741648b087' │ 'unit0' │ 'koalaswap' │ 'WAVES-EGG'    │ '0.3%'   │ 71.77623763480068  │ 0.13772514021863635    │ [ '0x2c8b6bbE3e110282508036Dd5782776De98A84AB', '0x3f496696aa4A55acc3b2EEaa433912d11b74452E' ] │ 'https://koalaswap.app/pools/0x23efffe256B5E754e386f3e3E65B4D741648b087' │ 0.090215615762294  │
│ 6       │ '0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 'unit0' │ 'koalaswap' │ 'WETH-WUNIT0'  │ '0.3%'   │ 6.990510755764721  │ 0                      │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 0                  │
│ 7       │ '0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 'unit0' │ 'koalaswap' │ 'WETH-USDT'    │ '0.3%'   │ 2.019436004634381  │ 0                      │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 0                  │
│ 8       │ '0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 'unit0' │ 'koalaswap' │ 'USDT-USDC'    │ '0.05%'  │ 2.0050955625636604 │ 0                      │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xEb19000D90f17FFbd3AD9CDB8915D928F4980fD1' ] │ 'https://koalaswap.app/pools/0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 0                  │
│ 9       │ '0x581d026e7486ab7E824EC1244C74398490815599' │ 'unit0' │ 'koalaswap' │ 'uUSDT-uUSDC'  │ '0.01%'  │ 1.395084           │ 0                      │ [ '0x33581bc0eD8566A9C6bB8AE1232128dd0779EB0c', '0x509AacC90F484526A4Ff23cF0272C1ADe2b594d9' ] │ 'https://koalaswap.app/pools/0x581d026e7486ab7E824EC1244C74398490815599' │ 0                  │
└─────────┴──────────────────────────────────────────────┴─────────┴─────────────┴────────────────┴──────────┴────────────────────┴────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

const feeUsd = feeValue0.plus(feeValue1)

const aprBn = tvl.gt(0) ? feeUsd.div(tvl).times(36500) : new BigNumber(0)
const apy = utils.aprToApy(aprBn.toNumber())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only include if the vaults autocompound, otherwise we report apy = apr

@slasher125
Copy link
Collaborator

slasher125 commented Oct 10, 2025

@Klyaus pls check tvl value for 0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9, seems wrong

@Klyaus
Copy link
Contributor Author

Klyaus commented Oct 23, 2025

@Klyaus pls check tvl value for 0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9, seems wrong

Sorry, it's my fault. The error was due to the missing price for the Koala token. I changed the code so the price is calculated on-chain using the unit0 token. When the token price appears at https://coins.llama.fi/prices/, it will take priority.

@llamatester
Copy link

The koalaswap adapter exports pools:

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

Nb of pools: 10
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬─────────────┬────────────────┬──────────┬───────────────────────┬──────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────┬─────────────────────┐
│ (index) │ pool                                         │ chain   │ project     │ symbol         │ poolMeta │ tvlUsd                │ apyBase              │ underlyingTokens                                                                               │ url                                                                      │ volumeUsd1d         │
├─────────┼──────────────────────────────────────────────┼─────────┼─────────────┼────────────────┼──────────┼───────────────────────┼──────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────────────────────────────┼─────────────────────┤
│ 0       │ '0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 'unit0' │ 'koalaswap' │ 'KOALA-WUNIT0' │ '1%'     │ 58108.124297119284    │ 0.001557215375633025 │ [ '0x2689fAabe22Ec4516d716Da5B5f81e7e3aE379c3', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9' │ 0.24790921809495878 │
│ 1       │ '0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 'unit0' │ 'koalaswap' │ 'USDT-WUNIT0'  │ '0.3%'   │ 27571.16936286801     │ 42.52528102557651    │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x2168ab128d75F6D267DC8878F5d441cb6a111Dbb' │ 10707.504341184725  │
│ 2       │ '0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 'unit0' │ 'koalaswap' │ 'WBTC-USDT'    │ '0.3%'   │ 285.0510146473575     │ 13.496218038138121   │ [ '0x9CE808657ba90C65a2700b1cA5D943eC72834B52', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x710ef0EdbD9d882bBA31FC89E06CcD031FB1B511' │ 35.13343055409351   │
│ 3       │ '0x7FF1D5BE24A87D8cBAbd39F95400eB4668722dcd' │ 'unit0' │ 'koalaswap' │ 'EGG-USDT'     │ '0.3%'   │ 211.15820468061943    │ 30.57341689766881    │ [ '0x3f496696aa4A55acc3b2EEaa433912d11b74452E', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x7FF1D5BE24A87D8cBAbd39F95400eB4668722dcd' │ 58.95733171747817   │
│ 4       │ '0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 'unit0' │ 'koalaswap' │ 'WETH-WUNIT0'  │ '0.3%'   │ 5.714138106948727     │ 0                    │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x5CAeAf461782D9a6748BBc5b3F410684BF75115B' │ 0                   │
│ 5       │ '0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 'unit0' │ 'koalaswap' │ 'USDT-USDC'    │ '0.05%'  │ 2.0060597778771854    │ 0                    │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xEb19000D90f17FFbd3AD9CDB8915D928F4980fD1' ] │ 'https://koalaswap.app/pools/0xf526DfeB7aFB45d5491754f6A6c3D1F76Fc337c8' │ 0                   │
│ 6       │ '0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 'unit0' │ 'koalaswap' │ 'WETH-USDT'    │ '0.3%'   │ 1.9155422090596808    │ 0                    │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671' ] │ 'https://koalaswap.app/pools/0x79df3660aFe4c1bCDf02dd5CD87B5AF072b31DA6' │ 0                   │
│ 7       │ '0xbe480BC1e5e9866F70d465F7CA41709d2381E553' │ 'unit0' │ 'koalaswap' │ 'USDT-WUNIT0'  │ '1%'     │ 1.0318797159171234    │ 0                    │ [ '0xb303d80db8415FD1d3C9FED68A52EEAc9a052671', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0xbe480BC1e5e9866F70d465F7CA41709d2381E553' │ 0                   │
│ 8       │ '0x683E7B83f2546016bbBe6435eAd6c05c62b1034C' │ 'unit0' │ 'koalaswap' │ 'WBTC-WUNIT0'  │ '0.3%'   │ 0.14508848986883147   │ 0                    │ [ '0x9CE808657ba90C65a2700b1cA5D943eC72834B52', '0xCF43F7703d9B4E8835f977eF364B4014fA7e856E' ] │ 'https://koalaswap.app/pools/0x683E7B83f2546016bbBe6435eAd6c05c62b1034C' │ 0                   │
│ 9       │ '0x9aDFa1ef959171CAA995E1D9f39AaA6F44eaD5FB' │ 'unit0' │ 'koalaswap' │ 'WETH-WBTC'    │ '0.3%'   │ 0.0010993645008408397 │ 0                    │ [ '0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B', '0x9CE808657ba90C65a2700b1cA5D943eC72834B52' ] │ 'https://koalaswap.app/pools/0x9aDFa1ef959171CAA995E1D9f39AaA6F44eaD5FB' │ 0                   │
└─────────┴──────────────────────────────────────────────┴─────────┴─────────────┴────────────────┴──────────┴───────────────────────┴──────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────┴─────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit 64ff766 into DefiLlama:master Oct 24, 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