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 sophon farm support #13073

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

Add sophon farm support #13073

wants to merge 3 commits into from

Conversation

lutr0
Copy link
Contributor

@lutr0 lutr0 commented Jan 13, 2025

Name (to be shown on DefiLlama):

Sophon Farm

Twitter Link:

https://x.com/sophon

List of audit links if any:

https://docs.sophon.xyz/links/audits

Website Link:

sophon.xyz

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

Sophon_Logo_Black
Sophon_Logo_Main
Sophon_Logo_White

Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:

Sophon

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

All tokens staked into https://sophscan.xyz/address/0x5753fBeC29De6E2b56F73f7d7786e9f0d34897bb are counted. Soon we will enable LP tokens from Syncswap as well

Github org/user (Optional, if your code is open source, we can track activity):

https://github.com/sophon-org

@llamabutler
Copy link

Error while running adapter at projects/sophon-farm:

Error: Chain Not supported: sophon
Truncated error stack:

    at covalentGetTokens (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/token.js:21:41)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/unwrapLPs.js:815:56
    at Array.map (<anonymous>)
    at sumTokens2 (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/unwrapLPs.js:815:47)
    at tvl (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/sophon-farm/index.js:6:10)
    at getTvl (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:52:29)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:173:15
    at Array.map (<anonymous>)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:161:29
    at Array.map (<anonymous>)
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'

@llamabutler
Copy link

The adapter at projects/sophon-farm exports TVL:

sophon                    216.61 M

total                    216.61 M 

@g1nt0ki
Copy link
Member

g1nt0ki commented Jan 14, 2025

umm, what are these transactions?
https://sophscan.xyz/tx/0x471c84ec0740d8c1ba95dfd72f0d4f0fea6019afae929c30e776745df2806ca1

https://sophscan.xyz/tx/0xdcd0cab854c6613a6b00b966abe5bd673b278a7477e6d562592378d6fb4349fe

they contribute to the bulk of the tvl.

We have rejected farms run by chains themselves before, will check with the team if that applies here as well.

@g1nt0ki g1nt0ki self-assigned this Jan 14, 2025
@lutr0
Copy link
Contributor Author

lutr0 commented Jan 14, 2025

Hi, this is where we migrated the farm from ethereum to Sophon by bridging the assets https://blog.sophon.xyz/farming-phase-2/.
To clarify the assets are from users farming Sophon's airdrop, they are not owned by Sophon

This was the Ethereum farm during S1: https://etherscan.io/address/0xeff8e65ac06d7fe70842a4d54959e8692d6ae064

@lutr0
Copy link
Contributor Author

lutr0 commented Jan 15, 2025

Hi @g1nt0ki, let me know if you need more information from our side

@llamabutler
Copy link

The adapter at projects/sophon-farm exports TVL:

sophon                    274.64 M
ethereum                  429

total                    274.64 M 

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