CarbonController
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
12
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 46 additional slots
-
variable spans 44 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
2 additional
variables
Balances ($0.00)
No balances found for "CarbonController"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "CarbonController"
ABI
ABI objects
Getter at block 22750891
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
controllerType() pure returns (uint16)
1
pairs() view returns (address[2][])
[]
paused() view returns (bool)
false
roleAdmin() pure returns (bytes32)
0x2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096
roleEmergencyStopper() pure returns (bytes32)
0xf28f409b8cbe6b50c7ca45afe893f01f69626f8a4e33cb480bc1bc2d618c0845
roleFeesManager() pure returns (bytes32)
0x24a843cae781765d8cdc3bca1cc42497522c0508f4e621c2ca36ceea2fda7b16
tradingFeePPM() view returns (uint32)
2000
version() pure returns (uint16)
2
Read-only
accumulatedFees(address token) view returns (uint256)
calculateTradeSourceAmount(address sourceToken, address targetToken, struct TradeAction[] tradeActions) view returns (uint128)
calculateTradeTargetAmount(address sourceToken, address targetToken, struct TradeAction[] tradeActions) view returns (uint128)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
pair(address token0, address token1) view returns (struct Pair)
pairTradingFeePPM(address token0, address token1) view returns (uint32)
strategiesByPair(address token0, address token1, uint256 startIndex, uint256 endIndex) view returns (struct Strategy[])
strategiesByPairCount(address token0, address token1) view returns (uint256)
strategy(uint256 id) view returns (struct Strategy)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events createPair(address token0, address token1) returns (struct Pair)
createStrategy(address token0, address token1, (uint128, uint128, uint64, uint64)[2] orders) payable returns (uint256)
deleteStrategy(uint256 strategyId)
grantRole(bytes32 role, address account)
initialize()
pause()
postUpgrade(bytes data)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setPairTradingFeePPM(address token0, address token1, uint32 newPairTradingFeePPM)
setTradingFeePPM(uint32 newTradingFeePPM)
tradeBySourceAmount(address sourceToken, address targetToken, struct TradeAction[] tradeActions, uint256 deadline, uint128 minReturn) payable returns (uint128)
tradeByTargetAmount(address sourceToken, address targetToken, struct TradeAction[] tradeActions, uint256 deadline, uint128 maxInput) payable returns (uint128)
unpause()
updateStrategy(uint256 strategyId, (uint128, uint128, uint64, uint64)[2] currentOrders, (uint128, uint128, uint64, uint64)[2] newOrders) payable
withdrawFees(address token, uint256 amount, address recipient) returns (uint256)
FeesWithdrawn(address indexed token, address indexed recipient, uint256 indexed amount, address sender)
Initialized(uint8 version)
PairCreated(uint128 indexed pairId, address indexed token0, address indexed token1)
PairTradingFeePPMUpdated(address indexed token0, address indexed token1, uint32 prevFeePPM, uint32 newFeePPM)
Paused(address account)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
StrategyCreated(uint256 id, address indexed owner, address indexed token0, address indexed token1, struct Order order0, struct Order order1)
StrategyDeleted(uint256 id, address indexed owner, address indexed token0, address indexed token1, struct Order order0, struct Order order1)
StrategyUpdated(uint256 indexed id, address indexed token0, address indexed token1, struct Order order0, struct Order order1, uint8 reason)
TokensTraded(address indexed trader, address indexed sourceToken, address indexed targetToken, uint256 sourceAmount, uint256 targetAmount, uint128 tradingFeeAmount, bool byTargetAmount)
TradingFeePPMUpdated(uint32 prevFeePPM, uint32 newFeePPM)
Unpaused(address account)
constructor(address initVoucher, address proxy)
This contract contains no fallback and receive objects.
AccessDenied()
AlreadyInitialized()
BalanceMismatch()
DeadlineExpired()
GreaterThanMaxInput()
IdenticalAddresses()
InsufficientCapacity()
InsufficientLiquidity()
InsufficientNativeTokenReceived()
InvalidAddress()
InvalidFee()
InvalidIndices()
InvalidRate()
InvalidTradeActionAmount()
InvalidTradeActionStrategyId()
LowerThanMinReturn()
NativeAmountMismatch()
OrderDisabled()
OutDated()
Overflow()
PairAlreadyExists()
PairDoesNotExist()
UnknownDelegator()
UnnecessaryNativeTokenReceived()
ZeroValue()