CarbonPOL

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xf107ad75 at 18762285
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 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 44 additional slots

No balances found for "CarbonPOL"

No transactions found for "CarbonPOL"


Functions
Getter at block 21328713
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ethSaleAmount(view returns (struct ICarbonPOLEthSaleAmount)
(100000000000000000000, 0)
marketPriceMultiply(view returns (uint32)
2
minEthSaleAmount(view returns (uint128)
10000000000000000000
priceDecayHalfLife(view returns (uint32)
864000
roleAdmin(pure returns (bytes32)
0x2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096
version(pure returns (uint16)
2
Read-only
amountAvailableForTrading(address tokenview returns (uint128)
expectedTradeInput(address tokenuint128 targetAmountview returns (uint128)
expectedTradeReturn(address tokenuint128 sourceAmountview returns (uint128)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenPrice(address tokenview returns (struct ICarbonPOLPrice)
tradingEnabled(address tokenview returns (bool)
State-modifying
enableTrading(address tokenstruct ICarbonPOLPrice price
enableTradingETH(struct ICarbonPOLPrice price
grantRole(bytes32 roleaddress account
initialize(
postUpgrade(bytes data
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setEthSaleAmount(uint128 newEthSaleAmount
setMarketPriceMultiply(uint32 newMarketPriceMultiply
setMinEthSaleAmount(uint128 newMinEthSaleAmount
setPriceDecayHalfLife(uint32 newPriceDecayHalfLife
trade(address tokenuint128 targetAmountpayable 
Events
EthSaleAmountUpdated(uint128 prevEthSaleAmountuint128 newEthSaleAmount
Initialized(uint8 version
MarketPriceMultiplyUpdated(uint32 prevMarketPriceMultiplyuint32 newMarketPriceMultiply
MinEthSaleAmountUpdated(uint128 prevMinEthSaleAmountuint128 newMinEthSaleAmount
PriceDecayHalfLifeUpdated(uint32 prevPriceDecayHalfLifeuint32 newPriceDecayHalfLife
PriceUpdated(address indexed tokenstruct ICarbonPOLPrice price
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokenTraded(address indexed calleraddress indexed tokenuint128 sourceAmountuint128 targetAmount
TradingEnabled(address indexed tokenstruct ICarbonPOLPrice price
Constructor
constructor(address initBnt
Fallback and receive
receive(
Errors
AccessDenied(
AlreadyInitialized(
InsufficientAmountForTrading(
InsufficientNativeTokenSent(
InvalidAddress(
InvalidPrice(
InvalidToken(
InvalidTrade(
Overflow(
TradingDisabled(
ZeroValue(