SimpleAggregator

Verified contract

Active on Ethereum with 37 txns
Deployed by via 0x09e83d04 at 16276527
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
0x8a6bf59d1dd85f6c19181fcbd16de71a159b5863e0cd63ea4b187c3375208228
From
0x40e6cff81a53207a804e072308c91080799df6439c798498891a13998767658b
From
0x0f59851563ed5d379eb9e21b56f6d9ad65c6e5487cd3d520b12b83a0eea32b4e
From
0x8755e346c7f725c94248b66c0e790287710dc37f364292cfeb07f3d2610833ca
From
0x4bf5a23861867b9591727461f80d0e53446e3fba3a9f6b2700d6d551d634a48f
From
0xd8d8e676ecb1152b483d9a6b8100d9870ea91a0df962c1d4a9e15d8e9db8d4be
From
0x5f2a907f2aa390b39928b0a7466f770ce3fd0bf8690a250abf5dc57c4181a596
From
0xca1c4eb460f85568cd329c88661a176fdada1843557fbc4db94f196d2daf487f
From
0x66981af6174502831f90fc35b7f314a48ec3e5829270109da301366f7d9f4732
From
0x938ccd7f01bbf5a72195098de9ad3ebe403f7a77ce908b80f87800d260691abc
From

Functions
Getter at block 21388182
LENDING_POOL(view returns (address)
0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
provider(view returns (address)
0xb53c1a33016b2dc2ff3653530bff1848a515c8c5
router(view returns (address)
0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45
Read-only
hashPosition(struct SimpleAggregatorPosition positionpure returns (bytes32)
positions(bytes32view returns (address debtaddress collateraladdress owneruint256 amountuint8 leverageuint256 stopLossuint256 takeProfit)
State-modifying
_flashLoanAave(bytes _flashLoanParamsuint256 _borrowAmount
_swap(address fromaddress touint256 _amountbytes _swapParamspayable returns (uint256 amount)
borrowAmount(address tokenreturns (uint256)
closePosition(bytes32 positionHashbytes _flashLoanpayable 
closePositionCallback(address collateraladdress debtaddress useruint256 borrowedAmountbytes _exchangeuint256 repayAmountpayable 
collateralAmount(address tokenreturns (uint256)
executeOperation(address[] assetsuint256[] amountsuint256[] premiumsaddressbytes paramsreturns (bool)
openPosition(struct SimpleAggregatorPosition positionbytes _flashLoanpayable 
openPositionCallback(address collateraladdress debtuint256 amountuint256 leverageRatiobytes _exchangeuint256 repayAmountpayable 
Events

This contract contains no event objects.

Constructor

This contract contains no constructor objects.

Fallback and receive
receive(
Errors

This contract contains no error objects.