Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Current height fix
  • Loading branch information
robkorn committed Feb 26, 2021
1 parent d521ce4 commit f23c814
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ageusd-headless/src/protocol.rs
Expand Up @@ -379,8 +379,7 @@ impl StableCoinProtocol {
// Performing Checks
//
// Ensure Reserve Ratio is below maximum
if !bank_box.able_to_mint_reservecoin_amount(oracle_box, amount_to_mint, COOLING_OFF_HEIGHT)
{
if !bank_box.able_to_mint_reservecoin_amount(oracle_box, amount_to_mint, current_height) {
return Err(ProtocolError::InvalidReserveRatio());
}
// Ensure more than 0 ReserveCoins are attempted to be minted
Expand Down

0 comments on commit f23c814

Please sign in to comment.