[GIP-33] Update WBTC oracle


Gearbox is currently using the Chainlink’s BTC/USD price oracle as a price reference to WBTC.
It is proposed for Gearbox to implement a new oracle that would compose the Chainlink feeds for WBTC/BTC and BTC/USD into a WBTC/USD price feed.


Gearbox is currently using BTC/USD price feed for WBTC because the WBTC/BTC price feed is less precise (being updated every 2%).
However, recent crunch in WBTC liquidity, coupled with crypto twitter fud, give rise to concerns about temporary or permanent depugging of WBTC/BTC price. Even a temporary deppeging, given it is bigger than the liquidation penalty, would prevent liquidations from happening, and in extreme scenarios could give rise to bad debt.

Liquidity data

DeFi Llama shows a decrease of around 20% in WBTC total supply since the beginning of the month WBTC: TVL and Stats - DefiLlama

Our dashboard shows a decrease of 20% in the amount of WBTC liquidity one can sell with 4% slippage since Nov 18th. (The historical data from that date is available here Risk DAO | risk management dashboard).

Numbers from today

Numbers from Nov 18th


Update WBTC/USD price feed from Chainlink to composite oracle (WBTC/BTC) / (BTC/USD), where each value is taken from Chainlink oracle. while this solution might be less accurate on average, it would be more accurate in the extreme scenario that WBTC deppegs.
The new oracle can use the same code as the one from GIP-28, with potentially some change in variable names.

1 Like

Good proposal, support it.
Although WBtC is backed by BTC 1:1, I guess these days it’s better to have oracles showing real price of asset - so it make sense to use Composite Oracle WBTC/BTC * BTC/USD here.

1 Like

Support the proposal if it’s not much of an engineering work.
WBTC is not significantly utilised, but better to be on a safe side ofc.

Should not be significant work, the stETH composite oracle can be reused. So pretty much have to deploy it and connect through multisig vote (maybe rename some variables as well, since they are eth-centric right now).

1 Like