0 txs
4k calls
constructor
constructor(address _fxUSD)
functions
curvePool
viewfunction curvePool() view returns (address)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
fxUSD
viewfunction fxUSD() view returns (address)
getPrice
viewfunction getPrice() view returns (bool isPegged, uint256 price)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
isPriceAboveMaxDeviation
viewfunction isPriceAboveMaxDeviation() view returns (bool)
isPriceBelowMaxDeviation
viewfunction isPriceBelowMaxDeviation() view returns (bool)
maxDePegPriceDeviation
viewfunction maxDePegPriceDeviation() view returns (uint256)
maxUpPegPriceDeviation
viewfunction maxUpPegPriceDeviation() view returns (uint256)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address admin, address _curvePool)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
updateCurvePool
nonpayablefunction updateCurvePool(address newPool)
updateMaxPriceDeviation
nonpayablefunction updateMaxPriceDeviation(uint256 newDePegDeviation, uint256 newUpPegDeviation)
events
Initialized
event Initialized(uint64 version)
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)
UpdateCurvePool
event UpdateCurvePool(address indexed oldPool, address indexed newPool)
UpdateMaxPriceDeviation
event UpdateMaxPriceDeviation(uint256 oldDePegDeviation, uint256 oldUpPegDeviation, uint256 newDePegDeviation, uint256 newUpPegDeviation)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
ErrorZeroAddress
error ErrorZeroAddress()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
creation bytecode
0x60a0604052348015600e575f80fd5b50604051610b97380380610b97833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f80fd5b81516001600160a01b0381168114605f575f80fd5b9392505050565b608051610b126100855f395f81816101e901526106430152610b125ff3fe608060405234801561000f575f80fd5b5060043610610106575f3560e01c8063485cc9551161009e57806391d148541161006e57806391d148541461021e57806398d5fdca14610231578063a217fddf14610250578063afbd6f2514610257578063d547741f14610260575f80fd5b8063485cc955146101c85780636c1ac833146101db5780636dbe4bb9146101e45780637f63f75d1461020b575f80fd5b8063248a9ca3116100d9578063248a9ca31461016c5780632f2ff15d1461018d57806336568abe146101a25780634215dd1a146101b5575f80fd5b806301ffc9a71461010a578063118dd2ee14610132578063217394931461013a578063218751b214610142575b5f80fd5b61011d61011836600461092c565b610273565b60405190151581526020015b60405180910390f35b61011d6102a9565b61011d6102ce565b5f54610154906001600160a01b031681565b6040516001600160a01b039091168152602001610129565b61017f61017a36600461095a565b6102f3565b604051908152602001610129565b6101a061019b366004610985565b610313565b005b6101a06101b0366004610985565b610335565b6101a06101c33660046109b3565b61036d565b6101a06101d63660046109d3565b610381565b61017f60015481565b6101547f000000000000000000000000000000000000000000000000000000000000000081565b6101a06102193660046109ff565b6104b3565b61011d61022c366004610985565b6104ca565b610239610500565b604080519215158352602083019190915201610129565b61017f5f81565b61017f60025481565b6101a061026e366004610985565b61054b565b5f6001600160e01b03198216637965db0b60e01b14806102a357506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f600154670de0b6b3a76400006102c09190610a2e565b6102c8610567565b10905090565b5f600254670de0b6b3a76400006102e59190610a41565b6102ed610567565b11905090565b5f9081525f80516020610abd833981519152602052604090206001015490565b61031c826102f3565b6103258161069f565b61032f83836106ac565b50505050565b6001600160a01b038116331461035e5760405163334bd91960e11b815260040160405180910390fd5b610368828261074d565b505050565b5f6103778161069f565b61036883836107c6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156103c65750825b90505f8267ffffffffffffffff1660011480156103e25750303b155b9050811580156103f0575080155b1561040e5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561043857845460ff60401b1916600160401b1785555b610440610826565b610448610826565b610450610826565b61045a5f886106ac565b5061046486610830565b83156104aa57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b5f6104bd8161069f565b6104c682610830565b5050565b5f9182525f80516020610abd833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8061050a610567565b9050600154670de0b6b3a76400006105229190610a2e565b8110158015610545575060025461054190670de0b6b3a7640000610a41565b8111155b91509091565b610554826102f3565b61055d8161069f565b61032f838361074d565b5f805460405163c661065760e01b8152600481018390526001600160a01b03909116908290829063c661065790602401602060405180830381865afa1580156105b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d69190610a54565b604051636872765360e01b81525f60048201529091506001600160a01b03831690636872765390602401602060405180830381865afa15801561061b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061063f9190610a6f565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03160361069a578261068d670de0b6b3a764000080610a86565b6106979190610a9d565b92505b505090565b6106a981336108a6565b50565b5f5f80516020610abd8339815191526106c584846104ca565b610744575f848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556106fa3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506102a3565b5f9150506102a3565b5f5f80516020610abd83398151915261076684846104ca565b15610744575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506102a3565b6001805460028054928590558390556040805182815260208101849052908101859052606081018490529091907fd616ca8ccff93478248c500ab188da4ac4ad2ac5197ccd7b06ede4de00d9db6b9060800160405180910390a150505050565b61082e6108e3565b565b6001600160a01b0381166108575760405163a7f9319d60e01b815260040160405180910390fd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f2520215076099432ddbc527ac39de2742744098f3f15613021e81e4470af60549190a35050565b6108b082826104ca565b6104c65760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661082e57604051631afcd79f60e31b815260040160405180910390fd5b5f6020828403121561093c575f80fd5b81356001600160e01b031981168114610953575f80fd5b9392505050565b5f6020828403121561096a575f80fd5b5035919050565b6001600160a01b03811681146106a9575f80fd5b5f8060408385031215610996575f80fd5b8235915060208301356109a881610971565b809150509250929050565b5f80604083850312156109c4575f80fd5b50508035926020909101359150565b5f80604083850312156109e4575f80fd5b82356109ef81610971565b915060208301356109a881610971565b5f60208284031215610a0f575f80fd5b813561095381610971565b634e487b7160e01b5f52601160045260245ffd5b818103818111156102a3576102a3610a1a565b808201808211156102a3576102a3610a1a565b5f60208284031215610a64575f80fd5b815161095381610971565b5f60208284031215610a7f575f80fd5b5051919050565b80820281158282048414176102a3576102a3610a1a565b5f82610ab757634e487b7160e01b5f52601260045260245ffd5b50049056fe02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800a264697066735822122098ebc0b203b59cb7d6b31f1802d898baa55c96d45b310acb113f7cd7fd37936c64736f6c634300081a0033000000000000000000000000085780639cc2cacd35e474e71f4d000e2405d8f6