We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad749ad commit 8bd0195Copy full SHA for 8bd0195
programs/drift/src/instructions/user.rs
@@ -582,6 +582,12 @@ pub fn handle_change_approved_builder<'c: 'info, 'info>(
582
max_fee_tenth_bps: u16,
583
add: bool,
584
) -> Result<()> {
585
+ validate!(
586
+ ctx.accounts.escrow.authority != builder,
587
+ ErrorCode::DefaultError,
588
+ "Builder cannot be the same as the escrow authority"
589
+ )?;
590
+
591
let existing_builder_index = ctx
592
.accounts
593
.escrow
0 commit comments