mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Fix prism adapter
This commit is contained in:
@@ -15,10 +15,8 @@ async function staking() {
|
||||
`https://lcd.terra.dev/wasm/contracts/terra1042wzrwg2uk6jqxjm34ysqquyr9esdgm5qyswz/store?query_msg=%7B%22token_info%22%3A%20%7B%7D%7D`
|
||||
)
|
||||
|
||||
const res = await fetchURL('https://api.extraterrestrial.money/v1/api/prices?symbol=xPRISM')
|
||||
|
||||
return {
|
||||
"prism-protocol": Number(staked.data.result.total_supply) / 1e6 * res.data.prices.xPRISM.price
|
||||
"prism-governance-token": Number(staked.data.result.total_supply) / 1e6
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user