gildlab / ethgild

MIT License
2 stars 3 forks source link

Add support for sFLR multiplier Oracle #97

Open hardyjosh opened 1 week ago

hardyjosh commented 1 week ago

We want to support sFLR as an underlying asset, which is a liquid staking token on Flare managed by Sceptre.

To support we need to use the exchange rate on the sFLR contract.

Contracts
sFLR token Contract
0x12e605bc104e93B45e1aD99F9e555f659051c2BB

Price feed
How to get the sFLR price from Sceptre?
Contract Functionfor exchange rate: getSharesByPooledFlr(1e18)
FLR price from FTSO registry: getCurrentPriceWithDecimals('FLR') 

Formula: getCurrentPriceWithDecimals('FLR') / getSharesByPooledFlr(1e18) = sFLR Price