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_)