feat: Add permit2 draft

This commit is contained in:
Diana Carvalho
2025-01-13 17:57:54 +00:00
parent fa462ee9f3
commit 5d79da44f3
4 changed files with 62 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ pub struct Order {
/// True if the order is an exact output order.
pub exact_out: bool,
/// The token being sold (exact in) or bought (exact out).
given_token: Bytes,
pub given_token: Bytes,
/// Amount of the given token.
pub given_amount: BigUint,
/// The token being bought (exact in) or sold (exact out).
@@ -26,7 +26,7 @@ pub struct Order {
/// Amount of the checked token.
checked_amount: BigUint,
/// Address of the sender.
sender: Bytes,
pub sender: Bytes,
/// Address of the receiver.
pub receiver: Bytes,
/// List of swaps to fulfill the order.