CarbonController

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x8db072cf at 5315952
Slot
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

No balances found for "CarbonController"

No transactions found for "CarbonController"


Functions
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 tokenview returns (uint256)
calculateTradeSourceAmount(address sourceTokenaddress targetTokenstruct TradeAction[] tradeActionsview returns (uint128)
calculateTradeTargetAmount(address sourceTokenaddress targetTokenstruct TradeAction[] tradeActionsview returns (uint128)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
pair(address token0address token1view returns (struct Pair)
pairTradingFeePPM(address token0address token1view returns (uint32)
strategiesByPair(address token0address token1uint256 startIndexuint256 endIndexview returns (struct Strategy[])
strategiesByPairCount(address token0address token1view returns (uint256)
strategy(uint256 idview returns (struct Strategy)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
createPair(address token0address token1returns (struct Pair)
createStrategy(address token0address token1(uint128, uint128, uint64, uint64)[2] orderspayable returns (uint256)
deleteStrategy(uint256 strategyId
grantRole(bytes32 roleaddress account
initialize(
pause(
postUpgrade(bytes data
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setPairTradingFeePPM(address token0address token1uint32 newPairTradingFeePPM
setTradingFeePPM(uint32 newTradingFeePPM
tradeBySourceAmount(address sourceTokenaddress targetTokenstruct TradeAction[] tradeActionsuint256 deadlineuint128 minReturnpayable returns (uint128)
tradeByTargetAmount(address sourceTokenaddress targetTokenstruct TradeAction[] tradeActionsuint256 deadlineuint128 maxInputpayable returns (uint128)
unpause(
updateStrategy(uint256 strategyId(uint128, uint128, uint64, uint64)[2] currentOrders(uint128, uint128, uint64, uint64)[2] newOrderspayable 
withdrawFees(address tokenuint256 amountaddress recipientreturns (uint256)
Events
FeesWithdrawn(address indexed tokenaddress indexed recipientuint256 indexed amountaddress sender
Initialized(uint8 version
PairCreated(uint128 indexed pairIdaddress indexed token0address indexed token1
PairTradingFeePPMUpdated(address indexed token0address indexed token1uint32 prevFeePPMuint32 newFeePPM
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StrategyCreated(uint256 idaddress indexed owneraddress indexed token0address indexed token1struct Order order0struct Order order1
StrategyDeleted(uint256 idaddress indexed owneraddress indexed token0address indexed token1struct Order order0struct Order order1
StrategyUpdated(uint256 indexed idaddress indexed token0address indexed token1struct Order order0struct Order order1uint8 reason
TokensTraded(address indexed traderaddress indexed sourceTokenaddress indexed targetTokenuint256 sourceAmountuint256 targetAmountuint128 tradingFeeAmountbool byTargetAmount
TradingFeePPMUpdated(uint32 prevFeePPMuint32 newFeePPM
Unpaused(address account
Constructor
constructor(address initVoucheraddress proxy
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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(