0 txs
1 call
constructor
constructor(address _pyth, address _base, address _quote, bytes32 _feedId, uint256 _maxStaleness, uint256 _maxConfWidth)
functions
base
viewfunction base() view returns (address)
feedId
viewfunction feedId() view returns (bytes32)
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)
maxConfWidth
viewfunction maxConfWidth() view returns (uint256)
maxStaleness
viewfunction maxStaleness() view returns (uint256)
name
viewfunction name() view returns (string)
pyth
viewfunction pyth() view returns (address)
quote
viewfunction quote() view returns (address)
events
No events.
errors
PriceOracle_InvalidAnswer
error PriceOracle_InvalidAnswer()
PriceOracle_InvalidConfiguration
error PriceOracle_InvalidConfiguration()
PriceOracle_NotSupported
error PriceOracle_NotSupported(address base, address quote)
PriceOracle_Overflow
error PriceOracle_Overflow()
creation bytecode
0x61018060405234801562000011575f80fd5b506040516200104c3803806200104c8339810160408190526200003491620001b5565b61038482111562000058576040516301a4c16560e21b815260040160405180910390fd5b6001600160a01b0380871660805285811660a081905290851660c05260e08490526101008390526101208290526200009090620000b9565b60ff166101405260c051620000a590620000b9565b60ff1661016052506200026e945050505050565b5f63ffffffff826001600160a01b031611620000d757506012919050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290515f9182916001600160a01b038616916200011b9162000217565b5f60405180830381855afa9150503d805f811462000155576040519150601f19603f3d011682016040523d82523d5f602084013e6200015a565b606091505b50915091508180156200016e575080516020145b6200017b57601262000191565b8080602001905181019062000191919062000245565b949350505050565b80516001600160a01b0381168114620001b0575f80fd5b919050565b5f805f805f8060c08789031215620001cb575f80fd5b620001d68762000199565b9550620001e66020880162000199565b9450620001f66040880162000199565b9350606087015192506080870151915060a087015190509295509295509295565b5f82515f5b818110156200023857602081860181015185830152016200021c565b505f920191825250919050565b5f6020828403121562000256575f80fd5b815160ff8116811462000267575f80fd5b9392505050565b60805160a05160c05160e05161010051610120516101405161016051610d51620002fb5f395f8181610325015261036301525f6102ef01525f81816101c601526106cb01525f818161019f015261060101525f818161011e015261053801525f81816101ed01526102a301525f8181610153015261028101525f818161022701526105600152610d515ff3fe608060405234801561000f575f80fd5b506004361061009f575f3560e01c806387cf469611610072578063999b93af11610058578063999b93af146101e8578063ae68676c1461020f578063f98d06f014610222575f80fd5b806387cf46961461019a57806388df1eff146101c1575f80fd5b80630579e61f146100a357806306fdde03146100d05780634a643499146101195780635001f3b51461014e575b5f80fd5b6100b66100b136600461095f565b610249565b604080519283526020830191909152015b60405180910390f35b61010c6040518060400160405280600a81526020017f507974684f7261636c650000000000000000000000000000000000000000000081525081565b6040516100c79190610998565b6101407f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100c7565b6101757f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100c7565b6101407f000000000000000000000000000000000000000000000000000000000000000081565b6101407f000000000000000000000000000000000000000000000000000000000000000081565b6101757f000000000000000000000000000000000000000000000000000000000000000081565b61014061021d36600461095f565b610263565b6101757f000000000000000000000000000000000000000000000000000000000000000081565b5f805f610257868686610279565b96879650945050505050565b5f61026f848484610279565b90505b9392505050565b5f806102c7847f0000000000000000000000000000000000000000000000000000000000000000857f00000000000000000000000000000000000000000000000000000000000000006103a9565b90505f6102d26104ed565b8051604082015191925067ffffffffffffffff16905f90610313907f0000000000000000000000000000000000000000000000000000000000000000610a2f565b90505f80825f0b13156103515761034a7f0000000000000000000000000000000000000000000000000000000000000000836107c4565b9050610390565b61038d61035d83610a6d565b610387907f0000000000000000000000000000000000000000000000000000000000000000610aa8565b5f6107c4565b90505b61039c89848388610835565b9998505050505050505050565b5f8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614801561041057508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561041c57505f6104e5565b8173ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614801561048257508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561048f575060016104e5565b6040517f4ca22af000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80871660048301528416602482015260440160405180910390fd5b949350505050565b604080516080810182525f8082526020820181905291810182905260608101919091526040517f96834ad30000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201525f907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906396834ad390602401608060405180830381865afa1580156105ba573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105de9190610ae9565b9050428160600151101561065f575f8160600151426105fd9190610b8d565b90507f0000000000000000000000000000000000000000000000000000000000000000811115610659576040517fd743df6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506106af565b5f4282606001516106709190610b8d565b9050603c8111156106ad576040517fd743df6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5f815f015160070b13158061071557508051612710906106fa907f00000000000000000000000000000000000000000000000000000000000000009067ffffffffffffffff16610ba0565b6107049190610bb7565b816020015167ffffffffffffffff16115b1561074c576040517fd743df6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec816040015160030b12806107885750600c816040015160030b135b156107bf576040517fd743df6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f60268360ff1611806107da575060268260ff16115b15610811576040517f52a1f2a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61081c83600a610d0d565b608061082984600a610d0d565b901b1790505b92915050565b5f6fffffffffffffffffffffffffffffffff8316608084901c83156108715761086887826108638986610ba0565b610881565b925050506104e5565b6108688761087f8885610ba0565b835b8282027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83850981811082019003806108cf57826108c65763ae47f7025f526004601cfd5b50819004610272565b8083116108e35763ae47f7025f526004601cfd5b828486095f84810385169485900494848311909303908390038390046001010292030417600260038302811880840282030280840282030280840282030280840282030280840282030280840290910302029392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146107bf575f80fd5b5f805f60608486031215610971575f80fd5b833592506109816020850161093c565b915061098f6040850161093c565b90509250925092565b5f602080835283518060208501525f5b818110156109c4578581018301518582016040015282016109a8565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82810b9082900b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808112607f8213171561082f5761082f610a02565b5f815f0b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808103610aa057610aa0610a02565b5f0392915050565b60ff818116838216019081111561082f5761082f610a02565b805167ffffffffffffffff811681146107bf575f80fd5b8051600381900b81146107bf575f80fd5b5f60808284031215610af9575f80fd5b6040516080810181811067ffffffffffffffff82111715610b41577f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040528251600781900b8114610b55575f80fd5b8152610b6360208401610ac1565b6020820152610b7460408401610ad8565b6040820152606083015160608201528091505092915050565b8181038181111561082f5761082f610a02565b808202811582820484141761082f5761082f610a02565b5f82610bea577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b600181815b80851115610c4857817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115610c2e57610c2e610a02565b80851615610c3b57918102915b93841c9390800290610bf4565b509250929050565b5f82610c5e5750600161082f565b81610c6a57505f61082f565b8160018114610c805760028114610c8a57610ca6565b600191505061082f565b60ff841115610c9b57610c9b610a02565b50506001821b61082f565b5060208310610133831016604e8410600b8410161715610cc9575081810a61082f565b610cd38383610bef565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115610d0557610d05610a02565b029392505050565b5f61027260ff841683610c5056fea26469706673582212204fe25c00108d881326ee105253e3850b98c15af21c45895687268fc88e1e372f64736f6c634300081800330000000000000000000000004305fb66699c3b2702d4d05cf36551390a4c69c600000000000000000000000035d8949372d46b7a3d5a56006ae77b215fc69bc00000000000000000000000000000000000000000000000000000000000000348f9c96a45784d0ce4390825a43a313149da787e6a6c66076f3a3f83e92501baeb00000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000002710