feat: Make check amount optional

This commit is contained in:
Diana Carvalho
2025-01-15 10:33:31 +00:00
parent 5a661ab6ca
commit 6f8bbd89a5
3 changed files with 19 additions and 11 deletions

View File

@@ -24,7 +24,8 @@ pub struct Solution {
/// Expected amount of the bought token (exact in) or sold token (exact out).
pub expected_amount: BigUint,
/// Minimum amount to be checked for the solution to be valid.
pub check_amount: BigUint,
/// If not set, the check will not be performed.
pub check_amount: Option<BigUint>,
/// Address of the sender.
pub sender: Bytes,
/// Address of the receiver.