Swap Verification

In the function verify_swap if earnest pricing conditions are met then the function verifies two cases:

  1. orderA_amount * orderA_earnest_price <= orderB_amount * orderA_sell_price

  2. orderB_amount * orderB_earnest_price <= orderA_amount * orderB_sell_price

otherwise the logic is as before.

Last updated