File tree Expand file tree Collapse file tree
programs/express_relay/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -455,11 +455,11 @@ pub struct SwapV2Args {
455455 pub deadline : i64 ,
456456 pub amount_searcher : u64 ,
457457 pub amount_user : u64 ,
458- /// The referral fee is specified in mill percentile
458+ /// The referral fee is specified in parts per million
459459 pub referral_fee_ppm : u64 ,
460460 /// Token in which the fees will be paid
461461 pub fee_token : FeeToken ,
462- /// The platform fee is specified in mill percentile
462+ /// The platform fee is specified in parts per million
463463 pub swap_platform_fee_ppm : u64 ,
464464}
465465
@@ -524,12 +524,12 @@ pub struct Swap<'info> {
524524 pub mint_searcher : Box < InterfaceAccount < ' info , Mint > > ,
525525
526526 #[ account( mint:: token_program = token_program_user) ]
527- /// CHECK: we check that this is set correctly based on the fee token manually since the V2 arguments are incompatible on the wire
528527 pub mint_user : Box < InterfaceAccount < ' info , Mint > > ,
529528
530529 #[ account(
531530 mint:: token_program = token_program_fee,
532531 ) ]
532+ /// CHECK: we check that this is set correctly based on the fee token manually since the V2 arguments are incompatible on the wire
533533 pub mint_fee : Box < InterfaceAccount < ' info , Mint > > ,
534534
535535 // Token programs
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ use anchor_lang::prelude::*;
22
33pub const FEE_SPLIT_PRECISION : u64 = 10_000 ;
44
5- pub const FEE_SPLIT_PRECISION_PPM : u64 = 100_000_000 ;
6- pub const FEE_BPS_TO_PPM : u64 = 10_000 ;
5+ pub const FEE_SPLIT_PRECISION_PPM : u64 = 1_000_000 ;
6+ pub const FEE_BPS_TO_PPM : u64 = 100 ;
77
88pub const RESERVE_EXPRESS_RELAY_METADATA : usize = 8 + 152 + 260 ;
99pub const SEED_METADATA : & [ u8 ] = b"metadata" ;
You can’t perform that action at this time.
0 commit comments