Update main.sol

approve
This commit is contained in:
UniverseFinance 2021-11-25 13:22:10 +08:00 committed by GitHub
parent fcec1b0dbe
commit 416c632adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ abstract contract UniverseFinanceConnect is Helpers, Events {
) external returns (string memory _eventName, bytes memory _eventParam){
amountA = getUint(getIds[0], amountA);
amountB = getUint(getIds[1], amountB);
_approve(universeVault, amountA, amountB);
(uint256 share0, uint256 share1) = _deposit(universeVault, amountA, amountB);
// EVENT
_eventName = "LogDeposit(address,uint256,uint256,uint256,uint256)";