OptimizedTransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 126 txns
Deployed by via 0x89958460 at 18120670
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
Native
Value $0.53
ERC-20
Value $1,615.18
ERC-20
Value $4.01
ERC-20
Value $3.96
ERC-20
Value $3.43
ERC-20
Value $3.32
ERC-20
Value $2.51
ERC-20
Value $2.41
ERC-20
Value $2
ERC-20
Value $1.9
0x9ad16bb19e74ed86e484fd06c61780217f755b00c0ec4bb1e596f45cd93afa7e
0x5a41ea5c09e2a6f206341d3f7958dbffe22cf97e712007e2d6915b1b15101211
0xbea0fc4c29ade4a54186a584e5d92a6eabe7acfc38bcb8eb89fc7de113035bb8
0xe495bf0695de5760e9494385d5b70b16e2019b777d65bbc16c2508f025236a28
0x9b31e0c390208d41ff9b03a29573cbd994ec628d3e9a815f605f9eac591a0fb8
0xc22cf024bd5daba7c8ed112750e4f847d6e1175fee7b5f1f3e9c1bec114489bb
0x205ba0e4515662f2a6f98d1403a35e08f2f9ddaeddf818361d637e20356105f2
0x577d14c84e1cf8b893f6715265670951325cf758c56b5ef9daa555d7811fa495
0xd9bd7d32dcd570074cb35ce14fee5407b19336b7fc67f5589b9384cfc12f404a
0x00c1f83b7d53ee41c486c75a48473e7f44199bd25832886af8a3e869b18d7af4

Functions
Getter at block 20903564
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ethSaleAmount(view returns (struct ICarbonPOLEthSaleAmount)
(100000000000000000000, 220353248525531)
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
admin(returns (address admin_)
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
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
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
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 _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
receive(
Errors
AccessDenied(
AlreadyInitialized(
InsufficientAmountForTrading(
InsufficientNativeTokenSent(
InvalidAddress(
InvalidPrice(
InvalidToken(
InvalidTrade(
Overflow(
TradingDisabled(
ZeroValue(