File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
programs/drift/src/instructions Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,9 @@ pub fn handle_migrate_referrer<'c: 'info, 'info>(
549549 }
550550
551551 let escrow = & mut ctx. accounts . escrow ;
552- escrow. referrer = ctx. accounts . user_stats . load ( ) ?. referrer ;
552+ let mut user_stats = ctx. accounts . user_stats . load_mut ( ) ?;
553+ escrow. referrer = user_stats. referrer ;
554+ user_stats. update_builder_referral_status ( ) ;
553555
554556 escrow. validate ( ) ?;
555557 Ok ( ( ) )
@@ -4824,6 +4826,7 @@ pub struct MigrateReferrer<'info> {
48244826 /// CHECK: The auth owning this account, payer of builder/ref fees
48254827 pub authority : AccountInfo < ' info > ,
48264828 #[ account(
4829+ mut ,
48274830 has_one = authority
48284831 ) ]
48294832 pub user_stats : AccountLoader < ' info , UserStats > ,
You can’t perform that action at this time.
0 commit comments