we are comparing the "params.amount == 0x0" but it should be compared to 0.
function createOffer(CreateOfferParams calldata params) external payable {
/**
* @dev points and amount must be greater than 0
* @dev eachTradeTax must be less than 100%, decimal scaler is 10000
* @dev collateralRate must be more than 100%, decimal scaler is 10000
*/
i@>>f (params.points == 0x0 || params.amount == 0x0) {
revert Errors.AmountIsZero();
}
the wrong comparison of amount.
amount !=0.
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.