From 74a947ec7b58d5ce197fcc593a40d4586b972d96 Mon Sep 17 00:00:00 2001 From: Milen Radkov Date: Fri, 11 Dec 2020 12:32:16 +0200 Subject: [PATCH] hotfix: remove require where its not needed --- contracts/BondCurveLinear.aes | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/BondCurveLinear.aes b/contracts/BondCurveLinear.aes index 1f3e6a5..79fc3bb 100644 --- a/contracts/BondCurveLinear.aes +++ b/contracts/BondCurveLinear.aes @@ -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(