Skip to content

Commit

Permalink
hotfix: remove require where its not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mradkov committed Dec 11, 2020
1 parent 981ad87 commit 74a947e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/BondCurveLinear.aes
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ contract BondCurve =
calculate_buy_price(total_supply: int, buy_tokens: int) : int =
require(total_supply >= 0, "ERROR_TOTAL_SUPPLY_NEGATIVE")
require(buy_tokens >= 0, "ERROR_BUY_TOKENS_NEGATIVE")
require(total_supply >= sell_tokens, "ERROR_SELL_INSUFFICIENT_TOTAL_SUPPLY")
let buy_tokens_amount = Frac.from_int(buy_tokens)
let total_supply_frac = Frac.from_int(total_supply)
Frac.ceil(Frac.div(
Expand Down

0 comments on commit 74a947e

Please sign in to comment.