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 SOFA.org #10662

Merged
merged 2 commits into from
Jun 16, 2024
Merged

Add SOFA.org #10662

merged 2 commits into from
Jun 16, 2024

Conversation

sofa-org
Copy link
Contributor

Add SOFA.org (Ethereum/Arbitrum)

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):

SOFA.org

Twitter Link:

https://x.com/SOFAorgDAO

List of audit links if any:
Website Link:

https://sofa.org

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

SOFA org

Current TVL:
------ TVL ------
arbitrum                  10.80 M
ethereum                  2.58 M

total                    13.38 M
Treasury Addresses (if the protocol has treasury)

None

Chain:

Ethereum/Arbitrum

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)

rch-token

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):

Creating a decentralized, trustless, atomic settlement foundation for handling all financial assets on-chain.

Token address and ticker if any:

https://etherscan.io/address/0x57b96d4af698605563a4653d882635da59bf11af

Category (full list at https://defillama.com/categories) *Please choose only one:

Options

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):

Chainlink

Implementation Details: Briefly describe how the oracle is integrated into your project:

Spot Price / Price at Expiry

Obtaining the current price of an underlying asset on-chain through an oracle is typically done in one of two ways:

  • calling contracts from DEXs like Uniswap to get the Price or TWAP Price of the underlying asset
  • obtaining the asset price through data feeds provided by an oracle service like ChainLink

Considering the need for the Settlement Price to be as close as possible to CeFi exchange prices (for ease of hedging by users or market makers) and for security reasons (to avoid manipulation and attacks), we have chosen ChainLink's Data Feeds as the oracle source for our Price at Expiry.

With ChainLink's decentralized data sources that aggregate pricing information from different exchanges, we ensure that our smart contract executions are based on up-to-date, reliable, and fairest sets of pricing data publicly available.

Calculated Price Derived from Historical Closes

For products like Rangebound, it is necessary to know the highest and lowest prices of the underlying token from mint inception to expiry in order to calculate the final payout. Common on-chain typically cannot provide this data, given that on-chain oracles do not provide continuous time-series data.

Instead of deploying our own oracle contracts as a (common) centralization compromise, we have found a solution in ChainLink's Functions product. Thanks to the latest innovations, we are able to call off-chain APIs in a decentralized manner, and publish the obtained data on-chain through decentralized nodes like a typical data feed.
Automation Regular Update Service

SOFA utilizes ChainLink Automation to guarantee that prices are automatically updated and pushed to the blockchain on a regular basis. ChainLink Automation offers a decentralized network where smart contracts can schedule and automatically execute complex tasks, including interval data updates, trigger events, and even critical contract adjustments. This ensures that on-chain prices remain constantly up to date, and offers data confidence to SOFA's network of connected dApps.

Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:

https://docs.sofa.org/technical-design/oracle.html

forkedFrom (Does your project originate from another project):

No

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

TVL is calculated as the sum of deposits into all vaults. Note that in our Aave vaults, user deposits earn interest in Aave (The interest is used to purchase structured products). Thus, the TVL is calculated based on the vault's aToken balance.

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

@sofa-org

Add SOFA.org (Ethereum/Arbitrum)
@llamatester
Copy link

The adapter at projects/sofa-org exports TVL:

arbitrum                  10.83 M
ethereum                  2.58 M

total                    13.41 M 

@llamatester
Copy link

The adapter at projects/sofa-org exports TVL:

arbitrum                  11.64 M
ethereum                  2.44 M

total                    14.07 M 

@g1nt0ki g1nt0ki merged commit e314a07 into DefiLlama:main Jun 16, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented Jun 16, 2024

thanks for the PR

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