mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
👥 Update for review
This commit is contained in:
parent
e50bb11bd4
commit
04f6bebefd
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user