mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 23:16:48 +00:00
sdk
This commit is contained in:
@@ -17,6 +17,12 @@ pub fn process_set_fee_rate(accounts: &[AccountInfo<'_>], data: &[u8]) -> Progra
|
||||
.assert_mut(|c| c.admin == *signer_info.key)?;
|
||||
system_program.is_program(&system_program::ID)?;
|
||||
|
||||
// Limit fee rate.
|
||||
assert!(
|
||||
new_fee_rate <= FEE_RATE_BPS,
|
||||
"Fee rate must be less than or equal to 100 bps"
|
||||
);
|
||||
|
||||
// Set fee rate.
|
||||
config.fee_rate = new_fee_rate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user