Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anihamde committed Dec 17, 2024
1 parent eebc145 commit 72bf7af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion auction-server/src/auction/service/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,6 @@ impl Verification<Svm> for Service<Svm> {
.await?;
self.verify_signatures(&bid, &bid_chain_data, submit_type)
.await?;
// TODO we should verify that the wallet bids also include another instruction to the swap program with the appropriate accounts and fields
self.simulate_bid(&bid).await?;

// Check if the bid is not duplicate
Expand Down
1 change: 1 addition & 0 deletions auction-server/src/opportunity/service/get_quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ impl Service<ChainTypeSvm> {
let permission_account = Pubkey::new_from_array(rand::thread_rng().gen());

// TODO: we should fix the Opportunity struct (or create a new format) to more clearly distinguish Swap opps from traditional opps
// currently, we are using the same struct and just setting the unspecified token amount to 0
let (input_mint, input_amount, output_mint, output_amount) = match quote_create.tokens {
entities::QuoteTokens::InputTokenSpecified {
input_token,
Expand Down

0 comments on commit 72bf7af

Please sign in to comment.