import { Action } from '../../Action'; import { getAddr } from '../../addresses'; import { EthAddress, uint256 } from '../../types'; import { requireAddress } from '../../utils/general'; /** * LidoUnwrapAction - Unwraps WStEth into StEth * * @category Lido */ export class LidoUnwrapAction extends Action { /** * @param amount amount of WStEth to pull and Unwrap * @param from WstEth will be taken from this address * @param to stETH will be sent to this address */ constructor(amount:uint256, from:EthAddress, to:EthAddress) { requireAddress(to); super('LidoUnwrap', getAddr('LidoUnwrap'), ['uint256', 'address', 'address'], [amount, from, to]); } async getAssetsToApprove() { return [{ asset: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', owner: this.args[1] }]; } }