mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-15 23:16:46 +00:00
Boost v3 cutover (#118)
* steel v4 * scaffold boost v3 integration * fix build * enforce rotation duration * update interface * update deps * bump version * boost v3 * rsut version * deps * silent error * remove version flag
This commit is contained in:
@@ -98,13 +98,13 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
|
||||
}
|
||||
|
||||
// Max supply check.
|
||||
if mint.supply.ge(&MAX_SUPPLY) {
|
||||
if mint.supply().ge(&MAX_SUPPLY) {
|
||||
return Err(OreError::MaxSupply.into());
|
||||
}
|
||||
|
||||
// Fund the treasury token account.
|
||||
let amount = MAX_SUPPLY
|
||||
.saturating_sub(mint.supply)
|
||||
.saturating_sub(mint.supply())
|
||||
.min(total_epoch_rewards);
|
||||
mint_to_signed(
|
||||
mint_info,
|
||||
|
||||
Reference in New Issue
Block a user