// The amount of USDC to swap
uint amount = usdc.balanceOf(address(this));
// Tellor Request ID for WBTC/USD price
// _value is WBTC/USDC price scaled up by 1e6
(, _value, ) = tellor.getCurrentValue(wbtcRequestId);
// Use Tellor value to get a minOutput amount
uint minOutput = amount * 1e18 / _value / 1e12;
// Accept any outputAmount but will fail if exchange rate is
// too far from the oracle price
sushiRouter.swapExactTokensForTokens(
// See how much WBTC we got now
outputAmount = wbtc.balanceOf(address(this));
// If we receive less than the minOutput amount then revert
require(outputAmount >= minOutput, "BAD_EXCHANGE_RATE: Try again later");