Skip to content

Add HomelessSwap multi-chain TVL adapter #15466

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Hamza-Alarja
Copy link

Name :

HomelesSwap

Twitter Link:

https://x.com/homelesswap?lang=en

List of audit links if any:

https://drive.google.com/file/d/1CMmBkVVLX72DDJkogTf7esC80yrvbBqn/view

Website Link:

https://www.homelesswap.finance/

Logo (High resolution, will be shown with rounded borders):

(https://drive.google.com/file/d/1Cyb3najyn6eMFZ6ZnFS3HCTUbtiwdkzN/view?usp=drive_link)

Current TVL:

N/A

Treasury Addresses (if the protocol has treasury):

0x982E680B25c1e0e02b0b84d8f1E008094F200cd5

Chain:

Ethereum, BSC, zkSync, Polygon zkEVM

Coingecko ID:

N/A

Coinmarketcap ID:

N/A

Short Description (to be shown on DefiLlama):

HomelessSwap is a decentralized multi-chain swap protocol designed to offer fast, low-fee trading experiences across Ethereum, BNB Chain, zkSync, and Polygon zkEVM.

Token address and ticker if any:

0x299F467665e1870A705099AA5a0F11520df026bC (HLS)

Category:

DEX

Oracle Provider(s):

N/A

Implementation Details:

N/A

Documentation/Proof:

N/A

forkedFrom (pancakeswap):

N/A

methodology (what is being counted as tvl, how is tvl being calculated):

TVL is calculated by summing the balances of stablecoins (USDC, USDT, BUSD) and wrapped tokens (WETH, WBNB) held within swap commission smart contracts on each supported chain.

Github org/user (Optional, if your code is open source):

https://github.com/Hamza-Alarja/homeless

- Added TVL adapter for HomelessSwap protocol supporting Ethereum, BSC, zkSync, and Polygon zkEVM.
- TVL is calculated by summing balances of stablecoins and wrapped native tokens in the commission contracts.
- Contract addresses correspond to swap commission collectors on each supported chain.
Add HomelesSwap multi-chain TVL adapter
- Added TVL adapter for HomelesSwap protocol supporting Ethereum, BSC, zkSync, and Polygon zkEVM.
- TVL is calculated by summing balances of stablecoins and wrapped native tokens in the commission contracts.
- Contract addresses correspond to swap commission collectors on each supported chain.
Copy link
Member

@g1nt0ki g1nt0ki left a comment

Choose a reason for hiding this comment

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

thanks for the pr, does the project have any tvl?


polygon_zkevm: {
tvl: sumTokensExport({
owner: '0x0Ad3DaE92e136D363864CCd10c794B36922ccEa0',
Copy link
Member

Choose a reason for hiding this comment

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

is this address correct?

Copy link
Author

Choose a reason for hiding this comment

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

yes it's correct

Copy link
Member

Choose a reason for hiding this comment

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

why is there a duplicate adapter file

@noateden noateden assigned noateden and unassigned noateden Jul 14, 2025
@waynebruce0x waynebruce0x self-assigned this Jul 14, 2025
Copy link
Author

@Hamza-Alarja Hamza-Alarja left a comment

Choose a reason for hiding this comment

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

fixed


polygon_zkevm: {
tvl: sumTokensExport({
owner: '0x0Ad3DaE92e136D363864CCd10c794B36922ccEa0',
Copy link
Author

Choose a reason for hiding this comment

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

yes it's correct

@waynebruce0x
Copy link
Collaborator

 [chain: polygon_zkevm] [fail count: 2] [abi: function balanceOf(address account) view returns (uint256)]  
    target: 0xb24a0ed5084817de0cd20e2f07b0196ef5daa1e3 params: 0x0ad3dae92e136d363864ccd10c794b36922ccea0]
    target: 0x4200000000000000000000000000000000000006 params: 0x0ad3dae92e1...] {

@llamabutler
Copy link

Error while running adapter at projects/homelesswap:

SyntaxError: Unexpected end of input
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:122:12
    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:239:3)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@Hamza-Alarja
Copy link
Author

Thanks for the feedback. I’ve removed the token causing issues on Polygon zkEVM for now. Will revisit and add more tokens once confirmed.

@Hamza-Alarja
Copy link
Author

Hamza-Alarja commented Jul 17, 2025 via email

@llamabutler
Copy link

The adapter at projects/homelesswap exports TVL:

ethereum                  0
bsc                       0
era                       0

total                    0 

@Hamza-Alarja
Copy link
Author

Hamza-Alarja commented Jul 17, 2025 via email

@Hamza-Alarja Hamza-Alarja requested a review from g1nt0ki July 17, 2025 12:30
@waynebruce0x
Copy link
Collaborator

We need non zero TVL to list

@Hamza-Alarja
Copy link
Author

Hamza-Alarja commented Jul 17, 2025 via email

@Hamza-Alarja
Copy link
Author

We need non zero TVL to list

Currently, the protocol is still growing and we’re working on increasing liquidity and TVL across supported chains. Meanwhile, we can provide any data or proof needed to verify activity on the platform.

We’ll update the adapter once the TVL is consistently non-zero. Appreciate your patience and support!

@Hamza-Alarja
Copy link
Author

Currently, the protocol is still growing and we’re working on increasing
liquidity and TVL across supported chains. Meanwhile, we can provide any
data or proof needed to verify activity on the platform.

We’ll update the adapter once the TVL is consistently non-zero. Appreciate
your patience and support

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.

5 participants