Closed Sk1mer12 closed 1 month ago
Error while running inception adapter:
Test Suites: 1 failed, 1 total Tests: 1 failed, 9 passed, 10 total Snapshots: 0 total Time: 0.303 s Ran all test suites.
Nb of pools: 1
Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬──────────────────┬─────────┬───────────────────┬────────────────────┬─────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool │ chain │ project │ symbol │ tvlUsd │ apyBase │ apyBase7d │ underlyingTokens │
├─────────┼──────────────────────────────────────────────┼────────────┼──────────────────┼─────────┼───────────────────┼────────────────────┼─────────────────────┼──────────────────────────────────────────────────┤
│ 0 │ '0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C' │ 'ethereum' │ 'ether.fi-stake' │ 'inETH' │ 792772.9815178711 │ -1.921641488121472 │ -2.8538567857870354 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │
└─────────┴──────────────────────────────────────────────┴────────────┴──────────────────┴─────────┴───────────────────┴────────────────────┴─────────────────────┴──────────────────────────────────────────────────┘
}
Error while running inception adapter:
Test Suites: 1 failed, 1 total Tests: 1 failed, 9 passed, 10 total Snapshots: 0 total Time: 0.295 s Ran all test suites.
Nb of pools: 1
Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────────┬─────────┬───────────────────┬────────────────────┬─────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool │ chain │ project │ symbol │ tvlUsd │ apyBase │ apyBase7d │ underlyingTokens │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────────┼─────────┼───────────────────┼────────────────────┼─────────────────────┼──────────────────────────────────────────────────┤
│ 0 │ '0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C' │ 'ethereum' │ 'Inception' │ 'inETH' │ 792772.9815178711 │ -1.921641488121472 │ -2.8538567857870354 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────────┴─────────┴───────────────────┴────────────────────┴─────────────────────┴──────────────────────────────────────────────────┘
}
Error while running inception adapter:
Test Suites: 1 failed, 1 total Tests: 1 failed, 9 passed, 10 total Snapshots: 0 total Time: 0.311 s Ran all test suites.
Nb of pools: 1
Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────────┬─────────┬───────────────────┬───────────────────────┬─────────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool │ chain │ project │ symbol │ tvlUsd │ apyBase │ apyBase7d │ underlyingTokens │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────────┼─────────┼───────────────────┼───────────────────────┼─────────────────────────┼──────────────────────────────────────────────────┤
│ 0 │ '0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C' │ 'ethereum' │ 'Inception' │ 'inETH' │ 792772.9815178711 │ -0.000052647712003328 │ -0.00007818785714485028 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────────┴─────────┴───────────────────┴───────────────────────┴─────────────────────────┴──────────────────────────────────────────────────┘
}
Error while running inception adapter:
Test Suites: 1 failed, 1 total Tests: 1 failed, 9 passed, 10 total Snapshots: 0 total Time: 0.3 s Ran all test suites.
Nb of pools: 1
Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────────┬─────────┬───────────────────┬────────────────────┬─────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool │ chain │ project │ symbol │ tvlUsd │ apyBase │ apyBase7d │ underlyingTokens │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────────┼─────────┼───────────────────┼────────────────────┼─────────────────────┼──────────────────────────────────────────────────┤
│ 0 │ '0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C' │ 'ethereum' │ 'Inception' │ 'inETH' │ 792772.9815178711 │ -1.921641488121472 │ -2.8538567857870354 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────────┴─────────┴───────────────────┴────────────────────┴─────────────────────┴──────────────────────────────────────────────────┘
}
Hey @slasher125 Can you give me a little help here?
hey, there are so many issues here, from trying to change the value of a constant variable to using the wrong abis... can u send me a link to where i can actually deposit eth to receive inETH?
hey, there are so many issues here, from trying to change the value of a constant variable to using the wrong abis... can u send me a link to where i can actually deposit eth to receive inETH?
For sure! This one allows you to get rates -> https://etherscan.io/address/0x122ee24Cb3Cc1b6B987800D3B54A68FC16910Dbf#readProxyContract
This is the token address -> https://etherscan.io/token/0xf073bac22dab7faf4a3dd6c6189a70d54110525c
This is the vault where eth gets deposited -> https://etherscan.io/address/0x46199caa0e453971cedf97f926368d9e5415831a
@slasher125 Bumping this up sir
i'm looking into this
how do u guys calculate the APR: 0.54%
on ur ui?
@slasher125 we use Ratio today / Ratio 7d
what is ratio? averagePercentageRate
?
@slasher125 yes exactly sir
doing that, i'm not getting anywhere close to what you guys report on your ui
@slasher125 what values are you getting?
on the function averagePercentageRate you need to call inEth contract ([0xf073bac22dab7faf4a3dd6c6189a70d54110525c] )
yes i'm doing that and getting completely different values
Can you share the values you are getting? @slasher125 Also can you share the code you are using please?
const axios = require('axios');
const abi = require('./abi');
const abiVault = require('./abiVault');
const inETH = '0xf073bAC22DAb7FaF4a3Dd6c6189a70D54110525C';
const vault = '0x122ee24cb3cc1b6b987800d3b54a68fc16910dbf';
const weth = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2';
const apy = async () => {
const totalSupply =
(
await sdk.api.abi.call({
target: inETH,
abi: 'erc20:totalSupply',
})
).output / 1e18;
const apr1d =
(
await sdk.api.abi.call({
target: vault,
abi: abiVault.find((m) => m.name === 'averagePercentageRate'),
params: [inETH, 1],
})
).output / 1e18;
const apr7d =
(
await sdk.api.abi.call({
target: vault,
abi: abiVault.find((m) => m.name === 'averagePercentageRate'),
params: [inETH, 7],
})
).output / 1e18;
const priceKey = `ethereum:${inETH}`;
const price = (
await axios.get(`https://coins.llama.fi/prices/current/${priceKey}`)
).data.coins[priceKey]?.price;
return [
{
pool: inETH,
chain: 'ethereum',
project: 'genesislrt-(native-restaking)',
symbol: 'inETH',
tvlUsd: totalSupply * price,
apyBase: apr1d,
apyBase7d: apr7d,
underlyingTokens: [weth],
},
];
};
module.exports = {
apy,
url: 'https://www.inceptionlrt.com/app/restaking/restake/?token=ETH',
};
@slasher125 What is going wrong exactly with the code? I believe everyhting is going properly
merged 588552b35f70f952a4fb0d3b92e424c03743cdfa
@Sk1mer12 there is no
getRate
function on 0x46199cAa0e453971cedf97f926368d9E5415831a