The UsdTokenSwapConfig
contract lacks functionality to set premium/discount curve parameters which causes division by zero in getPremiumDiscountFactor()
.
The UsdTokenSwapConfig
contract has pd curve parameters in its Data struct but no way to set them.
The update()
function only allows updating fees and execution time:
This causes division by zero in getPremiumDiscountFactor()
when calculating the premium/discount:
Users cannot initiate token swaps since the premium/discount calculation will revert due to uninitialized curve parameters.
Add functionality to set and update the premium/discount curve parameters in the update()
function.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.