enzyme.erc20

Documentation for eth_defi.enzyme.erc20 Python module.

Enzyme vault ERC-20 helpers.

Functions

prepare_approve(enzyme, vault, ...)

Prepare an ERC-20 approve() out from the Enzyme vault.

prepare_transfer(enzyme, vault, ...)

Prepare an ERC-20 transfer out from the Enzyme vault.

prepare_transfer_sneaky(enzyme, vault, ...)

Prepare an ERC-20 transfer out from the Enzyme vault.

prepare_transfer(enzyme, vault, generic_adapter, token, receiver, amount)

Prepare an ERC-20 transfer out from the Enzyme vault.

  • Tells the Enzyme vault to move away some tokes

  • Should be blocked by GuardV0, only useable by governance

Parameters
Returns

Transaction object that can be signed and executed

Return type

web3.contract.contract.ContractFunction

prepare_approve(enzyme, vault, generic_adapter, token, receiver, amount)

Prepare an ERC-20 approve() out from the Enzyme vault.

  • Tells the Enzyme vault to move away some tokes

  • Should be blocked by GuardV0, only useable by governance

Parameters
Returns

Transaction object that can be signed and executed

Return type

web3.contract.contract.ContractFunction

prepare_transfer_sneaky(enzyme, vault, generic_adapter, token, receiver, amount)

Prepare an ERC-20 transfer out from the Enzyme vault.

  • Tells the Enzyme vault to move away some tokes

  • Should be blocked by GuardV0, only useable by governance

Parameters
Returns

Transaction object that can be signed and executed

Return type

web3.contract.contract.ContractFunction