Fixing doc issues & payable

This commit is contained in:
Thomas Bouder 2021-08-23 23:35:31 +02:00
parent 81a50e969d
commit e50bb11bd4
No known key found for this signature in database
GPG Key ID: 46DDE658A384B046

View File

@ -13,6 +13,7 @@ import { YearnV2Interface } from "./interface.sol";
abstract contract YearnResolver is Events, Basic {
/**
* @dev Deposit funds in the vault, issuing shares to recipient.
* @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.
@ -23,11 +24,11 @@ abstract contract YearnResolver is Events, Basic {
uint256 amt,
uint256 getId,
uint256 setId
) external returns (string memory _eventName, bytes memory _eventParam) {
) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt);
YearnV2Interface yearn = YearnV2Interface(vault);
address want = yearn.token();
TokenInterface tokenContract = TokenInterface(want);
@ -44,6 +45,7 @@ abstract contract YearnResolver is Events, Basic {
/**
* @dev Withdraw shares from the vault.
* @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.
@ -54,7 +56,7 @@ abstract contract YearnResolver is Events, Basic {
uint256 amt,
uint256 getId,
uint256 setId
) external returns (string memory _eventName, bytes memory _eventParam) {
) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt);
YearnV2Interface yearn = YearnV2Interface(vault);