Skip to content

Commit

Permalink
feat: remove todo
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Sep 23, 2024
1 parent cfdc835 commit ad0c1f9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions programs/svm-spoke/src/instructions/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ pub fn deposit_v3(
) -> Result<()> {
let state = &mut ctx.accounts.state;

// TODO: I'm not totally sure how the check here is sufficient. For example can an account make their own fake
// spoke pool, create a route PDA, toggle it to enabled and then call deposit, passing in that PDA and
// enable a deposit to occur against a route that was not canonically enabled? write some tests for this and
// verify that this check is sufficient or update accordingly.
require!(ctx.accounts.route.enabled, CustomError::RouteNotEnabled);

let transfer_accounts = TransferChecked {
Expand Down

0 comments on commit ad0c1f9

Please sign in to comment.