0 txs
97 calls
constructor
constructor(address _base, address _quote, uint256 _rate)
functions
base
viewfunction base() view returns (address)
getQuote
viewfunction getQuote(uint256 inAmount, address base, address quote) view returns (uint256)
getQuotes
viewfunction getQuotes(uint256 inAmount, address base, address quote) view returns (uint256, uint256)
name
viewfunction name() view returns (string)
quote
viewfunction quote() view returns (address)
rate
viewfunction rate() view returns (uint256)
events
No events.
errors
PriceOracle_InvalidConfiguration
error PriceOracle_InvalidConfiguration()
PriceOracle_NotSupported
error PriceOracle_NotSupported(address base, address quote)
PriceOracle_Overflow
error PriceOracle_Overflow()
creation bytecode
0x610100604052348015610010575f5ffd5b506040516109c73803806109c783398101604081905261002f916101fc565b805f0361004f576040516301a4c16560e21b815260040160405180910390fd5b6001600160a01b03808416608081905290831660a05260c08290525f90610075906100a4565b90505f61008960a0516100a460201b60201c565b905061009682828061017a565b60e052506103909350505050565b5f63ffffffff826001600160a01b0316116100c157506012919050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290515f9182916001600160a01b0386169161010391610235565b5f60405180830381855afa9150503d805f811461013b576040519150601f19603f3d011682016040523d82523d5f602084013e610140565b606091505b5091509150818015610153575080516020145b61015e576012610172565b80806020019051810190610172919061024b565b949350505050565b5f610172836101898685610286565b5f60268360ff16118061019f575060268260ff16115b156101bd576040516302950f9560e51b815260040160405180910390fd5b6101c883600a610382565b60806101d584600a610382565b901b1790505b92915050565b80516001600160a01b03811681146101f7575f5ffd5b919050565b5f5f5f6060848603121561020e575f5ffd5b610217846101e1565b9250610225602085016101e1565b9150604084015190509250925092565b5f82518060208501845e5f920191825250919050565b5f6020828403121561025b575f5ffd5b815160ff8116811461026b575f5ffd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b60ff81811683821601908111156101db576101db610272565b6001815b60018411156102da578085048111156102be576102be610272565b60018416156102cc57908102905b60019390931c9280026102a3565b935093915050565b5f826102f0575060016101db565b816102fc57505f6101db565b8160018114610312576002811461031c57610338565b60019150506101db565b60ff84111561032d5761032d610272565b50506001821b6101db565b5060208310610133831016604e8410600b841016171561035b575081810a6101db565b6103675f19848461029f565b805f190482111561037a5761037a610272565b029392505050565b5f61026b60ff8416836102e2565b60805160a05160c05160e0516105f06103d75f395f61024b01525f818160ee015261022a01525f818161016f01526101fe01525f818161012301526101dc01526105f05ff3fe608060405234801561000f575f5ffd5b506004361061006f575f3560e01c80635001f3b51161004d5780635001f3b51461011e578063999b93af1461016a578063ae68676c14610191575f5ffd5b80630579e61f1461007357806306fdde03146100a05780632c4e722e146100e9575b5f5ffd5b6100866100813660046104ec565b6101a4565b604080519283526020830191909152015b60405180910390f35b6100dc6040518060400160405280600f81526020017f4669786564526174654f7261636c65000000000000000000000000000000000081525081565b6040516100979190610525565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610097565b6101457f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610097565b6101457f000000000000000000000000000000000000000000000000000000000000000081565b61011061019f3660046104ec565b6101be565b5f5f5f6101b28686866101d4565b96879650945050505050565b5f6101ca8484846101d4565b90505b9392505050565b5f5f610222847f0000000000000000000000000000000000000000000000000000000000000000857f0000000000000000000000000000000000000000000000000000000000000000610279565b9050610270857f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000846103bd565b95945050505050565b5f8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480156102e057508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156102ec57505f6103b5565b8173ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614801561035257508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561035f575060016103b5565b6040517f4ca22af000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80871660048301528416602482015260440160405180910390fd5b949350505050565b5f6fffffffffffffffffffffffffffffffff8316608084901c83156103f9576103f087826103eb8986610578565b610409565b925050506103b5565b6103f0876104078885610578565b835b8282027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8385098181108201900380610457578261044e5763ae47f7025f526004601cfd5b508190046101cd565b80831161046b5763ae47f7025f526004601cfd5b828486095f84810385169485900494848311909303908390038390046001010292030417600260038302811880840282030280840282030280840282030280840282030280840282030280840290910302029392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146104e7575f5ffd5b919050565b5f5f5f606084860312156104fe575f5ffd5b8335925061050e602085016104c4565b915061051c604085016104c4565b90509250925092565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b80820281158282048414176105b4577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b9291505056fea2646970667358221220e8c289af4809f49e3df0051daca5ab5acf5a0f020119f38a6cfce966ad9b20ea64736f6c634300081b003300000000000000000000000090455bd11ce8a67c57d467e634dc142b8e4105aa00000000000000000000000000000000000000000000000000000000000003480000000000000000000000000000000000000000000000000de0b6b3a7640000