0 txs
180 calls
constructor
constructor()
functions
ASSIGNER_ROLE
viewfunction ASSIGNER_ROLE() view returns (bytes32)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getEthAmount
viewfunction getEthAmount(uint256 _usdAmount) view returns (uint256)
getPrimeAmount
viewfunction getPrimeAmount(uint256 _usdAmount) view returns (uint256)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
PRECISION
viewfunction PRECISION() view returns (uint256)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
usdPriceInEth
viewfunction usdPriceInEth() view returns (uint256)
usdPriceInPrime
viewfunction usdPriceInPrime() view returns (uint256)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address account)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
setUsdEthRate
nonpayablefunction setUsdEthRate(uint256 _usdPriceInEth)
setUsdPrimeRate
nonpayablefunction setUsdPrimeRate(uint256 _usdPriceInPrime)
events
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
UsdEthRateSet
event UsdEthRateSet(uint256 indexed usdPriceInEth)
UsdPrimeRateSet
event UsdPrimeRateSet(uint256 indexed usdPriceInPrime)
errors
InsufficientPermissions
error InsufficientPermissions(address sender)
creation bytecode
0x6080604052670de0b6b3a7640000600155670de0b6b3a764000060025534801561002857600080fd5b50610034600033610063565b61005e7f1ca4917a93bbf937a078cf9cc2b3d0c4aaac3367aae1018d3d982bb6e49887f133610063565b61010f565b61006d8282610071565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661006d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100cb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6109c48061011e6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806391d1485411610097578063b69a244911610066578063b69a2449146101fb578063b94beb891461020e578063ca027a2914610217578063d547741f1461022a57600080fd5b806391d14854146101c857806391e844fd146101db578063a217fddf146101e4578063aaf5eb68146101ec57600080fd5b806336568abe116100d357806336568abe146101685780633b0a895d1461017b57806346184dc41461018e5780638fc7a25d146101b557600080fd5b806301ffc9a7146100fa578063248a9ca3146101225780632f2ff15d14610153575b600080fd5b61010d61010836600461079e565b61023d565b60405190151581526020015b60405180910390f35b6101456101303660046107c8565b60009081526020819052604090206001015490565b604051908152602001610119565b6101666101613660046107e1565b610274565b005b6101666101763660046107e1565b61029e565b6101666101893660046107c8565b610321565b6101457f1ca4917a93bbf937a078cf9cc2b3d0c4aaac3367aae1018d3d982bb6e49887f181565b6101456101c33660046107c8565b6103a9565b61010d6101d63660046107e1565b6103cc565b61014560025481565b610145600081565b610145670de0b6b3a764000081565b6101666102093660046107c8565b6103f5565b61014560015481565b6101456102253660046107c8565b61045c565b6101666102383660046107e1565b610475565b60006001600160e01b03198216637965db0b60e01b148061026e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461028f8161049a565b61029983836104a7565b505050565b6001600160a01b03811633146103135760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61031d828261052b565b5050565b61034b7f1ca4917a93bbf937a078cf9cc2b3d0c4aaac3367aae1018d3d982bb6e49887f1336103cc565b61037657335b604051631974d56b60e01b81526001600160a01b03909116600482015260240161030a565b600281905560405181907ff54c310201c090b1a38bde72957c5c60af848d31dd33c6a56fed2dff578b619d90600090a250565b6000670de0b6b3a7640000600254836103c29190610833565b61026e919061084a565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61041f7f1ca4917a93bbf937a078cf9cc2b3d0c4aaac3367aae1018d3d982bb6e49887f1336103cc565b6104295733610351565b600181905560405181907f4f693831ce3ef45443e192fe5aafb1724416fe5bf6b189b181cf594cd22c795190600090a250565b6000670de0b6b3a7640000600154836103c29190610833565b6000828152602081905260409020600101546104908161049a565b610299838361052b565b6104a48133610590565b50565b6104b182826103cc565b61031d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556104e73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61053582826103cc565b1561031d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61059a82826103cc565b61031d576105a7816105e9565b6105b28360206105fb565b6040516020016105c3929190610890565b60408051601f198184030181529082905262461bcd60e51b825261030a91600401610905565b606061026e6001600160a01b03831660145b6060600061060a836002610833565b610615906002610938565b67ffffffffffffffff81111561062d5761062d61094b565b6040519080825280601f01601f191660200182016040528015610657576020820181803683370190505b509050600360fc1b8160008151811061067257610672610961565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106106a1576106a1610961565b60200101906001600160f81b031916908160001a90535060006106c5846002610833565b6106d0906001610938565b90505b6001811115610748576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061070457610704610961565b1a60f81b82828151811061071a5761071a610961565b60200101906001600160f81b031916908160001a90535060049490941c9361074181610977565b90506106d3565b5083156107975760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161030a565b9392505050565b6000602082840312156107b057600080fd5b81356001600160e01b03198116811461079757600080fd5b6000602082840312156107da57600080fd5b5035919050565b600080604083850312156107f457600080fd5b8235915060208301356001600160a01b038116811461081257600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761026e5761026e61081d565b60008261086757634e487b7160e01b600052601260045260246000fd5b500490565b60005b8381101561088757818101518382015260200161086f565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516108c881601785016020880161086c565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516108f981602884016020880161086c565b01602801949350505050565b602081526000825180602084015261092481604085016020870161086c565b601f01601f19169190910160400192915050565b8082018082111561026e5761026e61081d565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816109865761098661081d565b50600019019056fea2646970667358221220911eaa698a2f11fe47f4e5a2213dbf4b7d72976e28f22ca1fae06479961db38164736f6c63430008110033