Skip to main content

Operations.sol

Utils library with the most common helper functions

Usage


// Approves token for spending on `vaultAddress`Operations.safeApprove(tokenAddress, vaultAddress, amount);

Methods


// Safe approve token for spendingfunction safeApprove(    address token,    address to,    uint256 value) internal
// Safe transfer token to a specific address identified by the `to` parameterfunction safeTransfer(    address token,    address to,    uint256 value) internal
// Safe transfer token from owner to another addressfunction safeTransferFrom(    address token,    address from,    address to,    uint256 value) internal
// Safe transfer ETHfunction safeTransferETH(address to, uint256 value) internal