Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ interface GetMarketsLiquidityResponse {
}
*/

const ENDPOINT = 'https://api.size.credit';
const ENDPOINT = 'https://api.rheo.xyz';

async function getMarkets() /*: Promise<Market[]>*/ {
const getMarketsResponse /*: GetMarketsResponse*/ = await fetch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ async function apy() /*: Promise<Pool[]>*/ {
apyBase = getReserveData.liquidityRate / 10 ** 25;
}
return {
pool: market.id,
pool: `rheo-${market.id}`,
chain: uppercaseFirst(market.chain),
project: 'size-credit',
project: 'rheo',
symbol: market.base_symbol,
tvlUsd: marketsLiquidity[market.id].buy_side_liquidity_usd,
apyBase,
underlyingTokens: [market.debt_token.address],
url: `https://app.size.credit/borrow?action=market&type=lend&market_id=${market.id}`,
url: `https://app.rheo.xyz/borrow?action=market&type=lend&market_id=${market.id}`,
apyBaseBorrow: await borrowingAPR(
market,
TENOR_DAYS * DAYS_TO_SECONDS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ async function apy() /*: Promise<Pool[]>*/ {
);

return vaults.map((vault, i) => ({
pool: `vlv-${vault}`,
pool: `rheo-vlv-${vault}`,
chain: uppercaseFirst(chain),
apyBase: apyBasePerVault[i],
project: 'size-credit',
project: 'rheo',
symbol: symbols[i],
tvlUsd: (totalAssets[i] * prices[i]) / 10 ** decimals[i],
underlyingTokens: [assets[i]],
Expand Down
Loading