GeneralIndexModule
Verified contract
Active on
Ethereum with 2 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "GeneralIndexModule"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 12598707 | 3 years ago | | | 0 | 0.0041510045 | |
| 12598683 | 3 years ago | | | 0 | 0.0022682273 |
ABI
ABI objects
Getter at block 21045292
controller() view returns (address)
0xe565711e7a59800e110c959e156121988e6f4704
weth() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
executionInfo(address, address) view returns (uint256 targetUnit, uint256 maxSize, uint256 coolOffPeriod, uint256 lastTradeTimestamp, string exchangeName, bytes exchangeData)
getAllowedTraders(address _ckToken) view returns (address[])
getComponentTradeQuantityAndDirection(address _ckToken, address _component) view returns (bool, uint256)
getIsAllowedTrader(address _ckToken, address _trader) view returns (bool)
getRebalanceComponents(address _ckToken) view returns (address[])
permissionInfo(address) view returns (bool anyoneTrade)
rebalanceInfo(address) view returns (uint256 positionMultiplier, uint256 raiseTargetPercentage)
State-modifying
Events initialize(address _ckToken)
raiseAssetTargets(address _ckToken)
removeModule()
setAnyoneTrade(address _ckToken, bool _status)
setCoolOffPeriods(address _ckToken, address[] _components, uint256[] _coolOffPeriods)
setExchangeData(address _ckToken, address[] _components, bytes[] _exchangeData)
setExchanges(address _ckToken, address[] _components, string[] _exchangeNames)
setRaiseTargetPercentage(address _ckToken, uint256 _raiseTargetPercentage)
setTradeMaximums(address _ckToken, address[] _components, uint256[] _tradeMaximums)
setTraderStatus(address _ckToken, address[] _traders, bool[] _statuses)
startRebalance(address _ckToken, address[] _newComponents, uint256[] _newComponentsTargetUnits, uint256[] _oldComponentsTargetUnits, uint256 _positionMultiplier)
trade(address _ckToken, address _component, uint256 _ethQuantityLimit)
tradeRemainingWETH(address _ckToken, address _component, uint256 _minComponentReceived)
AnyoneTradeUpdated(address indexed _ckToken, bool indexed _status)
AssetExchangeUpdated(address indexed _ckToken, address indexed _component, string _newExchangeName)
AssetTargetsRaised(address indexed _ckToken, uint256 indexed positionMultiplier)
CoolOffPeriodUpdated(address indexed _ckToken, address indexed _component, uint256 _newCoolOffPeriod)
ExchangeDataUpdated(address indexed _ckToken, address indexed _component, bytes _newExchangeData)
RaiseTargetPercentageUpdated(address indexed _ckToken, uint256 indexed _raiseTargetPercentage)
RebalanceStarted(address indexed _ckToken, address[] aggregateComponents, uint256[] aggregateTargetUnits, uint256 indexed positionMultiplier)
TradeExecuted(address indexed _ckToken, address indexed _sellComponent, address indexed _buyComponent, address _exchangeAdapter, address _executor, uint256 _netAmountSold, uint256 _netAmountReceived, uint256 _protocolFee)
TradeMaximumUpdated(address indexed _ckToken, address indexed _component, uint256 _newMaximum)
TraderStatusUpdated(address indexed _ckToken, address indexed _trader, bool _status)
constructor(address _controller, address _weth)
This contract contains no fallback and receive objects.
This contract contains no error objects.