TransparentUpgradeableProxy
Verified contract
Proxy
Active on
Base with 155,353 txns
Unified storage
Map
Table
Raw
Constants and immutables
3
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x8c90…d527
0xf9d6…1547
0xffea…0470
0x5870…1154
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
HMSTR | ERC-20 | 5.082855 | -- | -- | |
(#106675) | MXP | ERC-721 | 1 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21750472 | 3 minutes ago | | | 0 | 0.0000015755965 | |
| 21750360 | 7 minutes ago | | | 0 | 0.0000014465007 | |
| 21750330 | 8 minutes ago | | | 0 | 0.0000015766282 | |
| 21750255 | 10 minutes ago | | | 0 | 0.0000010879447 | |
| 21750239 | 11 minutes ago | | | 0 | 0.0000015511776 | |
| 21750046 | 17 minutes ago | | | 0 | 0.0000013226012 | |
| 21749929 | 21 minutes ago | | | 0 | 0.0000011648599 | |
| 21749923 | 22 minutes ago | | | 0 | 0.0000013168775 | |
| 21749838 | 24 minutes ago | | | 0 | 0.0000011277060 | |
| 21749836 | 24 minutes ago | | | 0 | 0.0000011266835 |
ABI
ABI objects
Getter at block 21750566
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
PAUSE_ROLE() view returns (bytes32)
0x139c2898040ef16910dc9f44dc697df79363da767d8bc92f2e310312b816e46d
PCT_BASE() view returns (uint256)
1000000000000000000
PPM() view returns (uint32)
1000000
UPDATE_BENEFICIARY_ROLE() view returns (bytes32)
0xf7ea2b80c7b6a2cab2c11d2290cb005c3748397358a25e17113658c83b732593
UPDATE_FEES_ROLE() view returns (bytes32)
0x5f9be2932ed3a723f295a763be1804c7ebfd1a41c1348fb8bdf5be1c5cdca822
UPDATE_FORMULA_ROLE() view returns (bytes32)
0xbfb76d8d43f55efe58544ea32af187792a7bdb983850d8fed33478266eec3cbb
feeBeneficiary() view returns (address)
0x7f472aaa6492a07bffbe98664a11f76615150584
formula() view returns (address)
0xf9d6271c1f47fed7ea72edbe5a24dd06609f1547
paused() view returns (bool)
false
protocolBuyFeePct() view returns (uint256)
0
protocolSellFeePct() view returns (uint256)
50000000000000000
subjectBuyFeePct() view returns (uint256)
0
subjectFactory() view returns (address)
0x48f9887cab979b6f476bba3cc96808be8b8a2b72
subjectSellFeePct() view returns (uint256)
0
token() view returns (address)
0x8c9037d1ef5c6d1f6816278c7aaf5491d24cd527
tokenManager() view returns (address)
0xffeace4541276ac65c4e433b7fc63cda32b30470
vault() view returns (address)
0x58708f65bacdf5040eac739cf01299fa756a1154
Read-only
calculateTokensForBuy(address _subject, uint256 _subjectTokenAmount) view returns (uint256 moxieAmount_, uint256 protocolFee_, uint256 subjectFee_)
calculateTokensForSell(address _subject, uint256 _subjectTokenAmount) view returns (uint256 moxieAmount_, uint256 protocolFee_, uint256 subjectFee_)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
reserveRatio(address subject) view returns (uint32 _reserveRatio)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events buyShares(address _subject, uint256 _depositAmount, uint256 _minReturnAmountAfterFee) returns (uint256 shares_)
buySharesFor(address _subject, uint256 _depositAmount, address _onBehalfOf, uint256 _minReturnAmountAfterFee) returns (uint256 shares_)
grantRole(bytes32 role, address account)
initialize(address _token, address _formula, address _owner, address _tokenManager, address _vault, struct IMoxieBondingCurveFeeInput _feeInput, address _feeBeneficiary, address _subjectFactory)
initializeSubjectBondingCurve(address _subject, uint32 _reserveRatio, uint256 _initialSupply, uint256 _reserveAmount) returns (bool)
pause()
renounceRole(bytes32 role, address callerConfirmation)
revokeRole(bytes32 role, address account)
sellShares(address _subject, uint256 _sellAmount, uint256 _minReturnAmountAfterFee) returns (uint256 returnAmount_)
sellSharesFor(address _subject, uint256 _sellAmount, address _onBehalfOf, uint256 _minReturnAmountAfterFee) returns (uint256 returnAmount_)
unpause()
updateFeeBeneficiary(address _feeBeneficiary)
updateFees(struct IMoxieBondingCurveFeeInput _feeInput)
updateFormula(address _formula)
AdminChanged(address previousAdmin, address newAdmin)
Upgraded(address indexed implementation)
BondingCurveInitialized(address indexed _subject, address indexed _subjectToken, uint256 _initialSupply, uint256 _reserve, uint32 _reserveRatio)
Initialized(uint64 version)
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)
SubjectSharePurchased(address indexed _subject, address indexed _sellToken, uint256 _sellAmount, address _spender, address _buyToken, uint256 _buyAmount, address indexed _beneficiary)
SubjectShareSold(address indexed _subject, address indexed _sellToken, uint256 _sellAmount, address _spender, address _buyToken, uint256 _buyAmount, address indexed _beneficiary)
Unpaused(address account)
UpdateBeneficiary(address _beneficiary)
UpdateFees(uint256 _protocolBuyFeePct, uint256 _protocolSellFeePct, uint256 _subjectBuyFeePct, uint256 _subjectSellFeePct)
UpdateFormula(address _formula)
constructor(address _logic, address initialOwner, bytes _data)
fallback()
AddressEmptyCode(address target)
ERC1967InvalidAdmin(address admin)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
FailedInnerCall()
ProxyDeniedAdminAccess()
AccessControlBadConfirmation()
AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
EnforcedPause()
ExpectedPause()
FailedInnerCall()
InvalidInitialization()
MoxieBondingCurve_InvalidAmount()
MoxieBondingCurve_InvalidBeneficiary()
MoxieBondingCurve_InvalidDepositAmount()
MoxieBondingCurve_InvalidFeePercentage()
MoxieBondingCurve_InvalidFormula()
MoxieBondingCurve_InvalidOwner()
MoxieBondingCurve_InvalidReserveRation()
MoxieBondingCurve_InvalidSellAmount()
MoxieBondingCurve_InvalidSubject()
MoxieBondingCurve_InvalidSubjectFactory()
MoxieBondingCurve_InvalidSubjectSupply()
MoxieBondingCurve_InvalidSubjectToken()
MoxieBondingCurve_InvalidToken()
MoxieBondingCurve_InvalidTokenManager()
MoxieBondingCurve_InvalidVault()
MoxieBondingCurve_OnlySubjectFactory()
MoxieBondingCurve_SlippageExceedsLimit()
MoxieBondingCurve_SubjectAlreadyInitialized()
MoxieBondingCurve_SubjectNotInitialized()
NotInitializing()
SafeERC20FailedOperation(address token)