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 shido chain #10137

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,6 @@
"zklink",
"zksync",
"zora",
"zyx"
"zyx",
"shido"
]
18 changes: 18 additions & 0 deletions projects/shidoswap/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { get } = require('../helper/http')
const TVL_ENDPOINT = 'https://swagger.shidoscan.com/cosmos/staking/v1beta1/pool';
Copy link
Member

Choose a reason for hiding this comment

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

we cant count chain staking as tvl, is shidodex uni v2 fork? if so, can you share factory address and chain rpc details?


async function tvl(_, _1, _2, { api }) {
const response = await get(TVL_ENDPOINT);
const tvl = response.pool.bonded_tokens;
// 18 decimals symbol SHIDO name shido
api.add("shido-bonded-tokens",tvl / 1e18)
}

module.exports = {
timetravel: true,
misrepresentedTokens: false,
methodology: 'Counted out of the locked tokens value in the consensus mechanism.',
shido: {
tvl,
}
};
Loading