-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Loopscale TVL #14278
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
base: main
Are you sure you want to change the base?
Loopscale TVL #14278
Conversation
We have a number of complex assets that require a significant amount of data to compute their value including Orca whirlpool positions, PT tokens from Exponent and RateX, Perena + Meteora LPs, Flash Trade and Adrena Perp LP tokens. Had to do this via our backend to also have historical. |
|
||
const data = await response.json() | ||
|
||
data.map(d => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use our helper functions to fetch on chain data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's going to be very difficult to piece together all the assets supported on the platform as many are not recognized by DeFi llama (i.e. Orca LPs, Exponent PT tokens, Flash Trade LPs, etc).
How should we handle these assets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the codebase for the TVL endpoint open source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no it cannot be open sourced unfortunately. it plugs into our database to load accounts needed for different collateral assets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the adapter impossible to debug or audit
|
Where are you getting this error? I can run the tests fine but maybe I'm not running the correct one? |
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.json
file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (to be shown on DefiLlama): Loopscale
Twitter Link: https://x.com/LoopscaleLabs
List of audit links if any: https://github.com/oshieldio/Publications/blob/main/Loopscale/loopscale-v1.md
Website Link: https://loopscale.com
Logo (High resolution, will be shown with rounded borders): https://bridgesplit-app.s3.us-east-1.amazonaws.com/logo/logo_new_blue.png
Current TVL: ~$30M
Treasury Addresses (if the protocol has treasury): N/A
Chain: Solana
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): N/A
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): N/A
Short Description (to be shown on DefiLlama): Loopscale is a modular lending platform for the next-generation of onchain assets. Markets for any asset, at the best rate, with less risk.
Token address and ticker if any: N/A
Category (full list at https://defillama.com/categories) *Please choose only one: Lending
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.): Pyth
Implementation Details: Briefly describe how the oracle is integrated into your project: Used for validating collateral and principal values as well as the values of assets underlying LPs and other long-tail collateral.
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage: https://docs.loopscale.com/resources/asset-parameters
forkedFrom (Does your project originate from another project): No
methodology (what is being counted as tvl, how is tvl being calculated): Unused deposits + supplied collateral (collateral is not rehypothecated)
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/LoopscaleLabs