init funding test

This commit is contained in:
mingda
2020-10-27 02:53:23 +08:00
parent 081c0ecde4
commit dd60e1727f
9 changed files with 305 additions and 120 deletions

View File

@@ -46,7 +46,7 @@ contract SmartRoute is Ownable {
address(DVMController(DVM)._VAULT_()),
quoteAmount
);
receiveAmount = DVMController(DVM).sellBase(to);
receiveAmount = DVMController(DVM).sellQuote(to);
require(receiveAmount >= minReceive, "RECEIVE_NOT_ENOUGU");
return receiveAmount;
}