deploy to dodo testnet
This commit is contained in:
@@ -44,6 +44,7 @@ contract DSPFunding is DSPVault {
|
||||
// But May Happen,reserve >0 But totalSupply = 0
|
||||
if (totalSupply == 0) {
|
||||
// case 1. initial supply
|
||||
require(_QUOTE_TARGET_ > 0, "QUOTE_TARGET_IS_ZERO");
|
||||
require(quoteBalance > 0, "ZERO_QUOTE_AMOUNT");
|
||||
shares = quoteBalance < DecimalMath.mulFloor(baseBalance, _I_)
|
||||
? DecimalMath.divFloor(quoteBalance, _I_)
|
||||
|
||||
@@ -45,7 +45,6 @@ contract DVMFunding is DVMVault {
|
||||
if (totalSupply == 0) {
|
||||
// case 1. initial supply
|
||||
shares = baseBalance; // 以免出现balance很大但shares很小的情况
|
||||
require(_QUOTE_TARGET_ > 0, "QUOTE_TARGET_IS_ZERO");
|
||||
require(shares > 2001, "MINT_AMOUNT_NOT_ENOUGH");
|
||||
_mint(address(0), 1001);
|
||||
shares -= 1001;
|
||||
|
||||
@@ -7,7 +7,7 @@ pragma solidity 0.6.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
import {IDODOAdapter} from "../intf/IDODOAdapter.sol";
|
||||
import {IUniswapV3SwapCallback} from "../intf/IUniswapV3SwapCallback.sol";
|
||||
import {IUniswapV3SwapCallback} from "../intf/IUniswapV3SwapCallBack.sol";
|
||||
import {IUniV3} from "../intf/IUniV3.sol";
|
||||
import {IERC20} from "../../intf/IERC20.sol";
|
||||
import {SafeMath} from "../../lib/SafeMath.sol";
|
||||
|
||||
Reference in New Issue
Block a user