ETHShares

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0xc57cfdf5 at 6550702
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 1 additional slot

No balances found for "ETHShares"

No transactions found for "ETHShares"


Functions
Getter at block 23926209
ROLE_ACCESS_MANAGER(view returns (uint256)
57896044618658097711785492504343953926634992332820282019728792003956564819968
ROLE_PROTOCOL_FEE_MANAGER(view returns (uint32)
131072
ROLE_SHARES_SUBJECT_MANAGER(view returns (uint32)
65536
ROLE_UPGRADE_MANAGER(view returns (uint256)
28948022309329048855892746252171976963317496166410141009864396001978282409984
features(view returns (uint256)
0
getProtocolFeeDestination(view returns (address)
0x0000000000000000000000000000000000000000
getProtocolFeeInfo(view returns (address feeDestinationuint256 feePercent)
(feeDestination=0x0000000000000000000000000000000000000000, feePercent=0)
getProtocolFeePercent(view returns (uint256)
0
getSharesIssuer(view returns (address nftOwner)
0x0000000000000000000000000000000000000000
getSharesSubject(view returns (struct TheSharesSharesSubject)
(0x0000000000000000000000000000000000000000, 0)
getSharesSupply(view returns (uint256 supply)
0
getSubjectFeeInfo(view returns (address feeDestinationuint256 feePercent)
(feeDestination=0x0000000000000000000000000000000000000000, feePercent=0)
getSubjectFeePercent(view returns (uint256)
0
Read-only
getBuyPrice(uint256 _amountview returns (uint256)
getBuyPrice(uint256 _supplyuint256 _amountpure returns (uint256)
getBuyPriceAfterFee(uint256 _amountview returns (uint256)
getBuyPriceAfterFee(uint256 _supplyuint256 _amountuint256 _protocolFeePercentuint256 _subjectFeePercentpure returns (uint256)
getPrice(uint256 suint256 apure returns (uint256)
getRole(address operatorview returns (uint256)
getSellPrice(uint256 _amountview returns (uint256)
getSellPrice(uint256 _supplyuint256 _amountpure returns (uint256)
getSellPriceAfterFee(uint256 _amountview returns (uint256)
getSellPriceAfterFee(uint256 _supplyuint256 _amountuint256 _protocolFeePercentuint256 _subjectFeePercentpure returns (uint256)
getSharesBalance(address _holderview returns (uint256 balance)
isFeatureEnabled(uint256 requiredview returns (bool)
isOperatorInRole(address operatoruint256 requiredview returns (bool)
isSenderInRole(uint256 requiredview returns (bool)
State-modifying
buyShares(uint256 amountpayable 
buySharesTo(uint256 amountaddress beneficiarypayable 
postConstruct(address _ownerstruct TheSharesSharesSubject _sharesSubjectaddress _protocolFeeDestinationuint256 _protocolFeePercentuint256 _subjectFeePercentuint256 _amountaddress _beneficiarypayable 
sellShares(uint256 amount
sellSharesTo(uint256 amountaddress beneficiary
updateFeatures(uint256 _mask
updateProtocolFeeDestination(address _protocolFeeDestination
updateRole(address operatoruint256 role
updateSharesSubject(struct TheSharesSharesSubject _sharesSubject
updateSharesSubject(struct TheSharesSharesSubject _sharesSubjectaddress _factory
Events
ProtocolFeeDestinationUpdated(address oldProtocolFeeDestinationaddress newProtocolFeeDestination
RoleUpdated(address indexed operatoruint256 requesteduint256 assigned
SharesSubjectUpdated(struct TheSharesSharesSubject oldSubjectstruct TheSharesSharesSubject newSubjectaddress factory
Trade(address indexed beneficiaryaddress indexed issuerbool indexed isBuyuint256 sharesAmountuint256 paidAmountuint256 protocolFeeAmountuint256 subjectFeeAmountuint256 supply
Constructor
constructor(address _ownerstruct TheSharesSharesSubject _sharesSubjectaddress _protocolFeeDestinationuint256 _protocolFeePercentuint256 _subjectFeePercentuint256 _amountaddress _beneficiary
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.