-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add Allora Network adapter #17346
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 Allora Network adapter #17346
Conversation
- Track validator staking via Cosmos SDK - Track bridged ALLO tokens on Ethereum, Base, BSC - Added Allora endpoint to cosmos.js helper - Registered Allora in chains.json
|
The adapter at projects/allora exports TVL: |
projects/allora/index.js
Outdated
| // Return as raw amount | ||
| return bondedTokens; | ||
| } catch (error) { | ||
| console.log(`Allora chain staking fetch error: ${error.message}`); |
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 no try/catch
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.
noted, removed
projects/allora/index.js
Outdated
| // Track bridged tokens on their respective EVM chains | ||
| ethereum: { | ||
| tvl: async (api) => { | ||
| const totalSupply = await api.call({ |
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.
we cant count the mcap of bridged ALLO, they must be deposited to allora contracts by users to count as staking. Please remove these
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.
noted, fixed this, removed bridged tokens and cleaned up code as requested.
- Remove try/catch blocks (let errors bubble up) - Remove bridged token tracking (totalSupply = market cap, not TVL) - Clean up unnecessary comments and TODOs - Simplify code from 147 to 45 lines
|
The adapter at projects/allora exports TVL: |
|
@waynebruce0x thanks for merging, just fyi, happy to help as a data developer for defilama and want to contribute more adapters & build out your risk scoring frameworks too if the team still needs help cc @0xngmi |
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.jsonfile 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):
Allora Network
Twitter Link:
https://twitter.com/AlloraNetwork
List of audit links if any:
Website Link:
https://allora.network
Logo (High resolution, will be shown with rounded borders):
Current TVL:
~$14.8M ($1.04M staked + $13.76M bridged)
Treasury Addresses (if the protocol has treasury)
[Leave empty if unknown]
Chain:
Allora, Ethereum, Base, BSC
Coingecko ID:
allora
Coinmarketcap ID:
38908
Short Description:
Allora Network is a self-improving decentralized AI network
Token address and ticker:
Native: uallo (Allora Chain)
Ethereum: 0x8408D45b61f5823298F19a09B53b7339c0280489 (ALLO)
Base: 0x032d86656Db142138AC97d2c5C4E3766E8c0482d (ALLO)
BSC: 0xCCe5F304fD043d6A4E8cCB5376A4a4Fb583B98d5 (ALLO)
Category:
AI
Oracle Provider(s):
N/A
Implementation Details:
Tracks native staking on Allora Chain and bridged tokens via LayerZero OFT
Documentation/Proof:
https://docs.allora.network