From d14cf0d18700ffba123817ec63ca00efa3b671cf Mon Sep 17 00:00:00 2001 From: mingda Date: Fri, 18 Dec 2020 16:08:29 +0800 Subject: [PATCH] remove DVM deposit 1000 min deposit limit --- contracts/DODOVendingMachine/impl/DVMFunding.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/DODOVendingMachine/impl/DVMFunding.sol b/contracts/DODOVendingMachine/impl/DVMFunding.sol index 0326a92..a5b3e85 100644 --- a/contracts/DODOVendingMachine/impl/DVMFunding.sol +++ b/contracts/DODOVendingMachine/impl/DVMFunding.sol @@ -50,8 +50,8 @@ contract DVMFunding is DVMVault { // 在提币的时候向下取整。因此永远不会出现,balance为0但totalsupply不为0的情况 // 但有可能出现,reserve>0但totalSupply=0的场景 if (totalSupply == 0) { - shares = baseBalance.sub(10**3); // 以免出现balance很大但shares很小的情况 - _mint(address(0), 10**3); + require(baseBalance >= 10**3); // 以免出现balance很大但shares很小的情况 + shares = baseBalance; } else if (baseReserve > 0 && quoteReserve == 0) { // case 2. supply when quote reserve is 0 shares = baseInput.mul(totalSupply).div(baseReserve);