Skip to content

Conversation

@mmesser-rr
Copy link

@mmesser-rr mmesser-rr commented Aug 4, 2025

This PR introduces prices for

  • arBERO — hiBERO LST - based on it's main Arbera uniswap V2 liquidity pool price in stLBGT and price of stLBGT from Kodiak backend.
  • 3BC - based on it's main Kodiak uniswap V3 liquidity pool price and price of WBERA from Kodiak backend.

@waynebruce0x
Copy link
Collaborator

waynebruce0x commented Aug 7, 2025

We get 502 from https://backend.kodiak.finance/quote - is there another way we can fetch the value of these assets?

@waynebruce0x waynebruce0x self-assigned this Aug 7, 2025
@mmesser-rr
Copy link
Author

I tested the script on my local again, and also tested kodiak backend endpoint. Can we resolve 502 error on your side?


// ERC20 contracts
const THREE_BC = "0x467aA1bFa3dCC714f7c16B3D779200431f6A833B";
const ARBERO = "0xFa7767BBB3d832217ABaa86e5f2654429B3BF29F";
Copy link
Collaborator

Choose a reason for hiding this comment

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

for arBERO, we dont need custome pricing, we should only be counting the underlying LBGT assets

const api = new ChainApi({ chain: CHAIN_NAME });

// ERC20 contracts
const THREE_BC = "0x467aA1bFa3dCC714f7c16B3D779200431f6A833B";
Copy link
Collaborator

Choose a reason for hiding this comment

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

We cannot count 3BC right now because the mcap and liquidity is too low, therefore we dont need custom pricing. In future we can add support for this.

const USDC_E = "0x549943e04f40284185054145c6E4e9568C1D3241";
const BRARBERO = "0x0C1f965EB5221B8Daca960dAc1cCfdA5a97B7Dd7";
const BRLBGT = "0x883899D0111d69f85Fdfd19e4B89E613F231B781";
const STLBGT = "0xFace73a169e2CA2934036C8Af9f464b5De9eF0ca";
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have just added pricing for stLBGT and therefore no longer need custom pricing

@waynebruce0x
Copy link
Collaborator

In which case I believe we can remove the kodiak quote endpoint dependancy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants