bugfix:
- change search trade with offeramount instead totalamount
- lookup variable failed of debugchance