👥 Update for review

This commit is contained in:
Thomas Bouder 2021-09-02 10:00:55 +02:00
parent e50bb11bd4
commit 04f6bebefd
No known key found for this signature in database
GPG Key ID: 46DDE658A384B046
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
pragma solidity ^0.7.0;
contract Events {
event LogDeposit(address indexed vault, uint256 amt, uint256 getId, uint256 setId);
event LogWithdraw(address indexed recipient, uint256 amt, uint256 getId, uint256 setId);
event LogDeposit(address indexed vault, uint256 shareAmt, uint256 depositAmt, uint256 getId, uint256 setId);
event LogWithdraw(address indexed recipient, uint256 shareAmt, uint256 withdrawAmt, uint256 getId, uint256 setId);
}

View File

@ -16,7 +16,7 @@ abstract contract YearnResolver is Events, Basic {
* @notice This will deposit funds to a specific Yearn Vault.
* @param vault The address of the vault to deposit funds into.
* @param amt The amount of tokens to deposit.
* @param getId ID to retrieve amtA.
* @param getId ID to retrieve amt.
* @param setId ID stores the amount of shares received.
*/
function deposit(
@ -39,8 +39,8 @@ abstract contract YearnResolver is Events, Basic {
uint256 _shares = yearn.deposit(_amt, address(this));
setUint(setId, _shares);
_eventName = "LogDeposit(address, uint256, uint256, uint256)";
_eventParam = abi.encode(vault, _amt, getId, setId);
_eventName = "LogDeposit(address,uint256,uint256,uint256,uint256)";
_eventParam = abi.encode(vault, _shares, _amt, getId, setId);
}
/**
@ -48,7 +48,7 @@ abstract contract YearnResolver is Events, Basic {
* @notice This will withdraw the share from a specific Yearn Vault.
* @param vault The address of the vault to withdraw shares from.
* @param amt The amount of shares to withdraw.
* @param getId ID to retrieve amtA.
* @param getId ID to retrieve amt.
* @param setId ID stores the amount want token redeemed.
*/
function withdraw(
@ -66,8 +66,8 @@ abstract contract YearnResolver is Events, Basic {
uint256 _wantRedeemed = yearn.withdraw(_amt, address(this));
setUint(setId, _wantRedeemed);
_eventName = "LogWithdraw(address, uint256, uint256, uint256)";
_eventParam = abi.encode(vault, _amt, getId, setId);
_eventName = "LogWithdraw(address,uint256,uint256,uint256,uint256)";
_eventParam = abi.encode(vault, _amt, _wantRedeemed, getId, setId);
}
}