Files
mev-beta/pkg/contracts/flashloan_receiver_secure.go
Krypto Kajun c7142ef671 fix(critical): fix empty token graph + aggressive settings for 24h execution
CRITICAL BUG FIX:
- MultiHopScanner.updateTokenGraph() was EMPTY - adding no pools!
- Result: Token graph had 0 pools, found 0 arbitrage paths
- All opportunities showed estimatedProfitETH: 0.000000

FIX APPLIED:
- Populated token graph with 8 high-liquidity Arbitrum pools:
  * WETH/USDC (0.05% and 0.3% fees)
  * USDC/USDC.e (0.01% - common arbitrage)
  * ARB/USDC, WETH/ARB, WETH/USDT
  * WBTC/WETH, LINK/WETH
- These are REAL verified pool addresses with high volume

AGGRESSIVE THRESHOLD CHANGES:
- Min profit: 0.0001 ETH → 0.00001 ETH (10x lower, ~$0.02)
- Min ROI: 0.05% → 0.01% (5x lower)
- Gas multiplier: 5x → 1.5x (3.3x lower safety margin)
- Max slippage: 3% → 5% (67% higher tolerance)
- Max paths: 100 → 200 (more thorough scanning)
- Cache expiry: 2min → 30sec (fresher opportunities)

EXPECTED RESULTS (24h):
- 20-50 opportunities with profit > $0.02 (was 0)
- 5-15 execution attempts (was 0)
- 1-2 successful executions (was 0)
- $0.02-$0.20 net profit (was $0)

WARNING: Aggressive settings may result in some losses
Monitor closely for first 6 hours and adjust if needed

Target: First profitable execution within 24 hours

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 04:18:27 -05:00

920 lines
44 KiB
Go

// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package contracts
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// FlashLoanReceiverSecureMetaData contains all meta data concerning the FlashLoanReceiverSecure contract.
var FlashLoanReceiverSecureMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"BASIS_POINTS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_PATH_LENGTH\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_SLIPPAGE_BPS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"emergencyWithdraw\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeArbitrage\",\"inputs\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"internalType\":\"contractIERC20[]\"},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"path\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getBalance\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"receiveFlashLoan\",\"inputs\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"internalType\":\"contractIERC20[]\"},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"feeAmounts\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"userData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"vault\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIBalancerVault\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdrawProfit\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"ArbitrageExecuted\",\"inputs\":[{\"name\":\"initiator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"profit\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"pathLength\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FlashLoanInitiated\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SlippageProtectionTriggered\",\"inputs\":[{\"name\":\"expectedMin\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"actualReceived\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SafeERC20FailedOperation\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}
// FlashLoanReceiverSecureABI is the input ABI used to generate the binding from.
// Deprecated: Use FlashLoanReceiverSecureMetaData.ABI instead.
var FlashLoanReceiverSecureABI = FlashLoanReceiverSecureMetaData.ABI
// FlashLoanReceiverSecure is an auto generated Go binding around an Ethereum contract.
type FlashLoanReceiverSecure struct {
FlashLoanReceiverSecureCaller // Read-only binding to the contract
FlashLoanReceiverSecureTransactor // Write-only binding to the contract
FlashLoanReceiverSecureFilterer // Log filterer for contract events
}
// FlashLoanReceiverSecureCaller is an auto generated read-only Go binding around an Ethereum contract.
type FlashLoanReceiverSecureCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FlashLoanReceiverSecureTransactor is an auto generated write-only Go binding around an Ethereum contract.
type FlashLoanReceiverSecureTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FlashLoanReceiverSecureFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type FlashLoanReceiverSecureFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// FlashLoanReceiverSecureSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type FlashLoanReceiverSecureSession struct {
Contract *FlashLoanReceiverSecure // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// FlashLoanReceiverSecureCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type FlashLoanReceiverSecureCallerSession struct {
Contract *FlashLoanReceiverSecureCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// FlashLoanReceiverSecureTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type FlashLoanReceiverSecureTransactorSession struct {
Contract *FlashLoanReceiverSecureTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// FlashLoanReceiverSecureRaw is an auto generated low-level Go binding around an Ethereum contract.
type FlashLoanReceiverSecureRaw struct {
Contract *FlashLoanReceiverSecure // Generic contract binding to access the raw methods on
}
// FlashLoanReceiverSecureCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type FlashLoanReceiverSecureCallerRaw struct {
Contract *FlashLoanReceiverSecureCaller // Generic read-only contract binding to access the raw methods on
}
// FlashLoanReceiverSecureTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type FlashLoanReceiverSecureTransactorRaw struct {
Contract *FlashLoanReceiverSecureTransactor // Generic write-only contract binding to access the raw methods on
}
// NewFlashLoanReceiverSecure creates a new instance of FlashLoanReceiverSecure, bound to a specific deployed contract.
func NewFlashLoanReceiverSecure(address common.Address, backend bind.ContractBackend) (*FlashLoanReceiverSecure, error) {
contract, err := bindFlashLoanReceiverSecure(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecure{FlashLoanReceiverSecureCaller: FlashLoanReceiverSecureCaller{contract: contract}, FlashLoanReceiverSecureTransactor: FlashLoanReceiverSecureTransactor{contract: contract}, FlashLoanReceiverSecureFilterer: FlashLoanReceiverSecureFilterer{contract: contract}}, nil
}
// NewFlashLoanReceiverSecureCaller creates a new read-only instance of FlashLoanReceiverSecure, bound to a specific deployed contract.
func NewFlashLoanReceiverSecureCaller(address common.Address, caller bind.ContractCaller) (*FlashLoanReceiverSecureCaller, error) {
contract, err := bindFlashLoanReceiverSecure(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureCaller{contract: contract}, nil
}
// NewFlashLoanReceiverSecureTransactor creates a new write-only instance of FlashLoanReceiverSecure, bound to a specific deployed contract.
func NewFlashLoanReceiverSecureTransactor(address common.Address, transactor bind.ContractTransactor) (*FlashLoanReceiverSecureTransactor, error) {
contract, err := bindFlashLoanReceiverSecure(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureTransactor{contract: contract}, nil
}
// NewFlashLoanReceiverSecureFilterer creates a new log filterer instance of FlashLoanReceiverSecure, bound to a specific deployed contract.
func NewFlashLoanReceiverSecureFilterer(address common.Address, filterer bind.ContractFilterer) (*FlashLoanReceiverSecureFilterer, error) {
contract, err := bindFlashLoanReceiverSecure(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureFilterer{contract: contract}, nil
}
// bindFlashLoanReceiverSecure binds a generic wrapper to an already deployed contract.
func bindFlashLoanReceiverSecure(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := FlashLoanReceiverSecureMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _FlashLoanReceiverSecure.Contract.FlashLoanReceiverSecureCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.FlashLoanReceiverSecureTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.FlashLoanReceiverSecureTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _FlashLoanReceiverSecure.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.contract.Transact(opts, method, params...)
}
// BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.
//
// Solidity: function BASIS_POINTS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) BASISPOINTS(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "BASIS_POINTS")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.
//
// Solidity: function BASIS_POINTS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) BASISPOINTS() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.BASISPOINTS(&_FlashLoanReceiverSecure.CallOpts)
}
// BASISPOINTS is a free data retrieval call binding the contract method 0xe1f1c4a7.
//
// Solidity: function BASIS_POINTS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) BASISPOINTS() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.BASISPOINTS(&_FlashLoanReceiverSecure.CallOpts)
}
// MAXPATHLENGTH is a free data retrieval call binding the contract method 0xec52303b.
//
// Solidity: function MAX_PATH_LENGTH() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) MAXPATHLENGTH(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "MAX_PATH_LENGTH")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MAXPATHLENGTH is a free data retrieval call binding the contract method 0xec52303b.
//
// Solidity: function MAX_PATH_LENGTH() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) MAXPATHLENGTH() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.MAXPATHLENGTH(&_FlashLoanReceiverSecure.CallOpts)
}
// MAXPATHLENGTH is a free data retrieval call binding the contract method 0xec52303b.
//
// Solidity: function MAX_PATH_LENGTH() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) MAXPATHLENGTH() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.MAXPATHLENGTH(&_FlashLoanReceiverSecure.CallOpts)
}
// MAXSLIPPAGEBPS is a free data retrieval call binding the contract method 0xe229cd76.
//
// Solidity: function MAX_SLIPPAGE_BPS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) MAXSLIPPAGEBPS(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "MAX_SLIPPAGE_BPS")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// MAXSLIPPAGEBPS is a free data retrieval call binding the contract method 0xe229cd76.
//
// Solidity: function MAX_SLIPPAGE_BPS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) MAXSLIPPAGEBPS() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.MAXSLIPPAGEBPS(&_FlashLoanReceiverSecure.CallOpts)
}
// MAXSLIPPAGEBPS is a free data retrieval call binding the contract method 0xe229cd76.
//
// Solidity: function MAX_SLIPPAGE_BPS() view returns(uint256)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) MAXSLIPPAGEBPS() (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.MAXSLIPPAGEBPS(&_FlashLoanReceiverSecure.CallOpts)
}
// GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
//
// Solidity: function getBalance(address token) view returns(uint256 balance)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) GetBalance(opts *bind.CallOpts, token common.Address) (*big.Int, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "getBalance", token)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
}
// GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
//
// Solidity: function getBalance(address token) view returns(uint256 balance)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) GetBalance(token common.Address) (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.GetBalance(&_FlashLoanReceiverSecure.CallOpts, token)
}
// GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
//
// Solidity: function getBalance(address token) view returns(uint256 balance)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) GetBalance(token common.Address) (*big.Int, error) {
return _FlashLoanReceiverSecure.Contract.GetBalance(&_FlashLoanReceiverSecure.CallOpts, token)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "owner")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) Owner() (common.Address, error) {
return _FlashLoanReceiverSecure.Contract.Owner(&_FlashLoanReceiverSecure.CallOpts)
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) Owner() (common.Address, error) {
return _FlashLoanReceiverSecure.Contract.Owner(&_FlashLoanReceiverSecure.CallOpts)
}
// Vault is a free data retrieval call binding the contract method 0xfbfa77cf.
//
// Solidity: function vault() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCaller) Vault(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _FlashLoanReceiverSecure.contract.Call(opts, &out, "vault")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Vault is a free data retrieval call binding the contract method 0xfbfa77cf.
//
// Solidity: function vault() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) Vault() (common.Address, error) {
return _FlashLoanReceiverSecure.Contract.Vault(&_FlashLoanReceiverSecure.CallOpts)
}
// Vault is a free data retrieval call binding the contract method 0xfbfa77cf.
//
// Solidity: function vault() view returns(address)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureCallerSession) Vault() (common.Address, error) {
return _FlashLoanReceiverSecure.Contract.Vault(&_FlashLoanReceiverSecure.CallOpts)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.
//
// Solidity: function emergencyWithdraw(address token) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) EmergencyWithdraw(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.Transact(opts, "emergencyWithdraw", token)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.
//
// Solidity: function emergencyWithdraw(address token) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) EmergencyWithdraw(token common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.EmergencyWithdraw(&_FlashLoanReceiverSecure.TransactOpts, token)
}
// EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.
//
// Solidity: function emergencyWithdraw(address token) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) EmergencyWithdraw(token common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.EmergencyWithdraw(&_FlashLoanReceiverSecure.TransactOpts, token)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x176243c4.
//
// Solidity: function executeArbitrage(address[] tokens, uint256[] amounts, bytes path) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) ExecuteArbitrage(opts *bind.TransactOpts, tokens []common.Address, amounts []*big.Int, path []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.Transact(opts, "executeArbitrage", tokens, amounts, path)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x176243c4.
//
// Solidity: function executeArbitrage(address[] tokens, uint256[] amounts, bytes path) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) ExecuteArbitrage(tokens []common.Address, amounts []*big.Int, path []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.ExecuteArbitrage(&_FlashLoanReceiverSecure.TransactOpts, tokens, amounts, path)
}
// ExecuteArbitrage is a paid mutator transaction binding the contract method 0x176243c4.
//
// Solidity: function executeArbitrage(address[] tokens, uint256[] amounts, bytes path) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) ExecuteArbitrage(tokens []common.Address, amounts []*big.Int, path []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.ExecuteArbitrage(&_FlashLoanReceiverSecure.TransactOpts, tokens, amounts, path)
}
// ReceiveFlashLoan is a paid mutator transaction binding the contract method 0xf04f2707.
//
// Solidity: function receiveFlashLoan(address[] tokens, uint256[] amounts, uint256[] feeAmounts, bytes userData) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) ReceiveFlashLoan(opts *bind.TransactOpts, tokens []common.Address, amounts []*big.Int, feeAmounts []*big.Int, userData []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.Transact(opts, "receiveFlashLoan", tokens, amounts, feeAmounts, userData)
}
// ReceiveFlashLoan is a paid mutator transaction binding the contract method 0xf04f2707.
//
// Solidity: function receiveFlashLoan(address[] tokens, uint256[] amounts, uint256[] feeAmounts, bytes userData) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) ReceiveFlashLoan(tokens []common.Address, amounts []*big.Int, feeAmounts []*big.Int, userData []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.ReceiveFlashLoan(&_FlashLoanReceiverSecure.TransactOpts, tokens, amounts, feeAmounts, userData)
}
// ReceiveFlashLoan is a paid mutator transaction binding the contract method 0xf04f2707.
//
// Solidity: function receiveFlashLoan(address[] tokens, uint256[] amounts, uint256[] feeAmounts, bytes userData) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) ReceiveFlashLoan(tokens []common.Address, amounts []*big.Int, feeAmounts []*big.Int, userData []byte) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.ReceiveFlashLoan(&_FlashLoanReceiverSecure.TransactOpts, tokens, amounts, feeAmounts, userData)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.TransferOwnership(&_FlashLoanReceiverSecure.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.TransferOwnership(&_FlashLoanReceiverSecure.TransactOpts, newOwner)
}
// WithdrawProfit is a paid mutator transaction binding the contract method 0xd35c9a07.
//
// Solidity: function withdrawProfit(address token, uint256 amount) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) WithdrawProfit(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.Transact(opts, "withdrawProfit", token, amount)
}
// WithdrawProfit is a paid mutator transaction binding the contract method 0xd35c9a07.
//
// Solidity: function withdrawProfit(address token, uint256 amount) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) WithdrawProfit(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.WithdrawProfit(&_FlashLoanReceiverSecure.TransactOpts, token, amount)
}
// WithdrawProfit is a paid mutator transaction binding the contract method 0xd35c9a07.
//
// Solidity: function withdrawProfit(address token, uint256 amount) returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) WithdrawProfit(token common.Address, amount *big.Int) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.WithdrawProfit(&_FlashLoanReceiverSecure.TransactOpts, token, amount)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) {
return _FlashLoanReceiverSecure.contract.RawTransact(opts, nil) // calldata is disallowed for receive function
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureSession) Receive() (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.Receive(&_FlashLoanReceiverSecure.TransactOpts)
}
// Receive is a paid mutator transaction binding the contract receive function.
//
// Solidity: receive() payable returns()
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureTransactorSession) Receive() (*types.Transaction, error) {
return _FlashLoanReceiverSecure.Contract.Receive(&_FlashLoanReceiverSecure.TransactOpts)
}
// FlashLoanReceiverSecureArbitrageExecutedIterator is returned from FilterArbitrageExecuted and is used to iterate over the raw logs and unpacked data for ArbitrageExecuted events raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureArbitrageExecutedIterator struct {
Event *FlashLoanReceiverSecureArbitrageExecuted // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *FlashLoanReceiverSecureArbitrageExecutedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureArbitrageExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureArbitrageExecuted)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *FlashLoanReceiverSecureArbitrageExecutedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *FlashLoanReceiverSecureArbitrageExecutedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// FlashLoanReceiverSecureArbitrageExecuted represents a ArbitrageExecuted event raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureArbitrageExecuted struct {
Initiator common.Address
Profit *big.Int
PathLength uint8
Raw types.Log // Blockchain specific contextual infos
}
// FilterArbitrageExecuted is a free log retrieval operation binding the contract event 0xfac37cdddfd7f291801e7d8107a709cf227f494d3c10c42194ad1fdfb2d9ef6e.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, uint256 profit, uint8 pathLength)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) FilterArbitrageExecuted(opts *bind.FilterOpts, initiator []common.Address) (*FlashLoanReceiverSecureArbitrageExecutedIterator, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
logs, sub, err := _FlashLoanReceiverSecure.contract.FilterLogs(opts, "ArbitrageExecuted", initiatorRule)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureArbitrageExecutedIterator{contract: _FlashLoanReceiverSecure.contract, event: "ArbitrageExecuted", logs: logs, sub: sub}, nil
}
// WatchArbitrageExecuted is a free log subscription operation binding the contract event 0xfac37cdddfd7f291801e7d8107a709cf227f494d3c10c42194ad1fdfb2d9ef6e.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, uint256 profit, uint8 pathLength)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) WatchArbitrageExecuted(opts *bind.WatchOpts, sink chan<- *FlashLoanReceiverSecureArbitrageExecuted, initiator []common.Address) (event.Subscription, error) {
var initiatorRule []interface{}
for _, initiatorItem := range initiator {
initiatorRule = append(initiatorRule, initiatorItem)
}
logs, sub, err := _FlashLoanReceiverSecure.contract.WatchLogs(opts, "ArbitrageExecuted", initiatorRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(FlashLoanReceiverSecureArbitrageExecuted)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "ArbitrageExecuted", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseArbitrageExecuted is a log parse operation binding the contract event 0xfac37cdddfd7f291801e7d8107a709cf227f494d3c10c42194ad1fdfb2d9ef6e.
//
// Solidity: event ArbitrageExecuted(address indexed initiator, uint256 profit, uint8 pathLength)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) ParseArbitrageExecuted(log types.Log) (*FlashLoanReceiverSecureArbitrageExecuted, error) {
event := new(FlashLoanReceiverSecureArbitrageExecuted)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "ArbitrageExecuted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// FlashLoanReceiverSecureFlashLoanInitiatedIterator is returned from FilterFlashLoanInitiated and is used to iterate over the raw logs and unpacked data for FlashLoanInitiated events raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureFlashLoanInitiatedIterator struct {
Event *FlashLoanReceiverSecureFlashLoanInitiated // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *FlashLoanReceiverSecureFlashLoanInitiatedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureFlashLoanInitiated)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureFlashLoanInitiated)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *FlashLoanReceiverSecureFlashLoanInitiatedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *FlashLoanReceiverSecureFlashLoanInitiatedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// FlashLoanReceiverSecureFlashLoanInitiated represents a FlashLoanInitiated event raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureFlashLoanInitiated struct {
Token common.Address
Amount *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterFlashLoanInitiated is a free log retrieval operation binding the contract event 0x591ad3206c771ad9f89e5fce3ba3fd39fe164da7093471fce70eaf468c495f3c.
//
// Solidity: event FlashLoanInitiated(address indexed token, uint256 amount)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) FilterFlashLoanInitiated(opts *bind.FilterOpts, token []common.Address) (*FlashLoanReceiverSecureFlashLoanInitiatedIterator, error) {
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _FlashLoanReceiverSecure.contract.FilterLogs(opts, "FlashLoanInitiated", tokenRule)
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureFlashLoanInitiatedIterator{contract: _FlashLoanReceiverSecure.contract, event: "FlashLoanInitiated", logs: logs, sub: sub}, nil
}
// WatchFlashLoanInitiated is a free log subscription operation binding the contract event 0x591ad3206c771ad9f89e5fce3ba3fd39fe164da7093471fce70eaf468c495f3c.
//
// Solidity: event FlashLoanInitiated(address indexed token, uint256 amount)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) WatchFlashLoanInitiated(opts *bind.WatchOpts, sink chan<- *FlashLoanReceiverSecureFlashLoanInitiated, token []common.Address) (event.Subscription, error) {
var tokenRule []interface{}
for _, tokenItem := range token {
tokenRule = append(tokenRule, tokenItem)
}
logs, sub, err := _FlashLoanReceiverSecure.contract.WatchLogs(opts, "FlashLoanInitiated", tokenRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(FlashLoanReceiverSecureFlashLoanInitiated)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "FlashLoanInitiated", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseFlashLoanInitiated is a log parse operation binding the contract event 0x591ad3206c771ad9f89e5fce3ba3fd39fe164da7093471fce70eaf468c495f3c.
//
// Solidity: event FlashLoanInitiated(address indexed token, uint256 amount)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) ParseFlashLoanInitiated(log types.Log) (*FlashLoanReceiverSecureFlashLoanInitiated, error) {
event := new(FlashLoanReceiverSecureFlashLoanInitiated)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "FlashLoanInitiated", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// FlashLoanReceiverSecureSlippageProtectionTriggeredIterator is returned from FilterSlippageProtectionTriggered and is used to iterate over the raw logs and unpacked data for SlippageProtectionTriggered events raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureSlippageProtectionTriggeredIterator struct {
Event *FlashLoanReceiverSecureSlippageProtectionTriggered // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// Next advances the iterator to the subsequent event, returning whether there
// are any more events found. In case of a retrieval or parsing error, false is
// returned and Error() can be queried for the exact failure.
func (it *FlashLoanReceiverSecureSlippageProtectionTriggeredIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureSlippageProtectionTriggered)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(FlashLoanReceiverSecureSlippageProtectionTriggered)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *FlashLoanReceiverSecureSlippageProtectionTriggeredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *FlashLoanReceiverSecureSlippageProtectionTriggeredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// FlashLoanReceiverSecureSlippageProtectionTriggered represents a SlippageProtectionTriggered event raised by the FlashLoanReceiverSecure contract.
type FlashLoanReceiverSecureSlippageProtectionTriggered struct {
ExpectedMin *big.Int
ActualReceived *big.Int
Raw types.Log // Blockchain specific contextual infos
}
// FilterSlippageProtectionTriggered is a free log retrieval operation binding the contract event 0xb6094abf4e604ae0f85e37ab40510f093f6857d01c802ec39d20a3d67ec8f44d.
//
// Solidity: event SlippageProtectionTriggered(uint256 expectedMin, uint256 actualReceived)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) FilterSlippageProtectionTriggered(opts *bind.FilterOpts) (*FlashLoanReceiverSecureSlippageProtectionTriggeredIterator, error) {
logs, sub, err := _FlashLoanReceiverSecure.contract.FilterLogs(opts, "SlippageProtectionTriggered")
if err != nil {
return nil, err
}
return &FlashLoanReceiverSecureSlippageProtectionTriggeredIterator{contract: _FlashLoanReceiverSecure.contract, event: "SlippageProtectionTriggered", logs: logs, sub: sub}, nil
}
// WatchSlippageProtectionTriggered is a free log subscription operation binding the contract event 0xb6094abf4e604ae0f85e37ab40510f093f6857d01c802ec39d20a3d67ec8f44d.
//
// Solidity: event SlippageProtectionTriggered(uint256 expectedMin, uint256 actualReceived)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) WatchSlippageProtectionTriggered(opts *bind.WatchOpts, sink chan<- *FlashLoanReceiverSecureSlippageProtectionTriggered) (event.Subscription, error) {
logs, sub, err := _FlashLoanReceiverSecure.contract.WatchLogs(opts, "SlippageProtectionTriggered")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(FlashLoanReceiverSecureSlippageProtectionTriggered)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "SlippageProtectionTriggered", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseSlippageProtectionTriggered is a log parse operation binding the contract event 0xb6094abf4e604ae0f85e37ab40510f093f6857d01c802ec39d20a3d67ec8f44d.
//
// Solidity: event SlippageProtectionTriggered(uint256 expectedMin, uint256 actualReceived)
func (_FlashLoanReceiverSecure *FlashLoanReceiverSecureFilterer) ParseSlippageProtectionTriggered(log types.Log) (*FlashLoanReceiverSecureSlippageProtectionTriggered, error) {
event := new(FlashLoanReceiverSecureSlippageProtectionTriggered)
if err := _FlashLoanReceiverSecure.contract.UnpackLog(event, "SlippageProtectionTriggered", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}