From d2538e6d6053cd3df6ca35c360f4a89d7df4a13b Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Tue, 7 Jan 2025 10:32:59 +0000 Subject: [PATCH 1/2] feat(svm): N-05 Ambiguous Parameter Usage for fill_deadline Signed-off-by: Pablo Maldonado --- programs/svm-spoke/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/svm-spoke/src/lib.rs b/programs/svm-spoke/src/lib.rs index eea54150d..603823640 100644 --- a/programs/svm-spoke/src/lib.rs +++ b/programs/svm-spoke/src/lib.rs @@ -290,7 +290,7 @@ pub mod svm_spoke { output_amount: u64, destination_chain_id: u64, exclusive_relayer: Pubkey, - fill_deadline: u32, + fill_deadline_offset: u32, exclusivity_parameter: u32, message: Vec, ) -> Result<()> { @@ -304,7 +304,7 @@ pub mod svm_spoke { output_amount, destination_chain_id, exclusive_relayer, - fill_deadline, + fill_deadline_offset, exclusivity_parameter, message, ) From 31ed4689f1047aca5fb44de0621bffed52375dec Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Wed, 8 Jan 2025 14:14:13 +0000 Subject: [PATCH 2/2] docs(svm): update comment Signed-off-by: Pablo Maldonado --- programs/svm-spoke/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/svm-spoke/src/lib.rs b/programs/svm-spoke/src/lib.rs index 603823640..90704b271 100644 --- a/programs/svm-spoke/src/lib.rs +++ b/programs/svm-spoke/src/lib.rs @@ -280,6 +280,7 @@ pub mod svm_spoke { } // Equivalent to deposit_v3 except quote_timestamp is set to the current time. + // The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`. pub fn deposit_v3_now( ctx: Context, depositor: Pubkey,