fix mixSwap weth to eth

This commit is contained in:
owen05
2021-01-12 20:33:44 +08:00
parent ab4b5b7c03
commit 847d0bf895
6 changed files with 56 additions and 19 deletions

View File

@@ -89,8 +89,8 @@ contract DVMFactory is InitializableOwnable {
);
}
_REGISTRY_[baseToken][quoteToken].push(newVendingMachine);
_USER_REGISTRY_[msg.sender].push(newVendingMachine);
emit NewDVM(baseToken, quoteToken, msg.sender, newVendingMachine);
_USER_REGISTRY_[tx.origin].push(newVendingMachine);
emit NewDVM(baseToken, quoteToken, tx.origin, newVendingMachine);
}
// ============ Admin Operation Functions ============