deploy to dodo testnet

This commit is contained in:
Skye
2024-04-17 17:28:43 +08:00
parent 90a6c338c8
commit 4e487c869b
9 changed files with 6906 additions and 1180 deletions

View File

@@ -44,6 +44,7 @@ contract DSPFunding is DSPVault {
// But May Happenreserve >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_)

View File

@@ -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;

View File

@@ -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";