73 txs
203 calls
constructor
constructor(address _owner)
functions
getPriceInUSD
viewfunction getPriceInUSD(address token) view returns (uint256 price)
getTokensForManualUpdates
viewfunction getTokensForManualUpdates() view returns (address[])
heartbeats
viewfunction heartbeats(address) view returns (uint256)
manualLastUpdated
viewfunction manualLastUpdated(address) view returns (uint256)
manualPrices
viewfunction manualPrices(address) view returns (uint256)
owner
viewfunction owner() view returns (address)
priceFeeds
viewfunction priceFeeds(address) view returns (address)
renounceOwnership
nonpayablefunction renounceOwnership()
setManualPrices
nonpayablefunction setManualPrices(address[] tokens, uint256[] prices)
setPriceFeeds
nonpayablefunction setPriceFeeds(address[] tokens, address[] feeds, uint256[] heartbeat)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
ManualPriceUpdated
event ManualPriceUpdated(address[] tokens, uint256[] prices, uint256 lastUpdated)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PriceFeedSet
event PriceFeedSet(address[] token, address[] feed, uint256[] heartbeat)
errors
IncorrectFeedDecimals
error IncorrectFeedDecimals()
LengthMismatch
error LengthMismatch()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
StaleManualPrice
error StaleManualPrice()
StalePriceFeed
error StalePriceFeed()
ZeroAddress
error ZeroAddress()
ZeroAmount
error ZeroAmount()
creation bytecode
0x60803460b857601f610b1938819003918201601f19168301916001600160401b0383118484101760bc5780849260209460405283398101031260b857516001600160a01b0381169081900360b857801560a5575f80546001600160a01b031981168317825560405192916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3610a4890816100d18239f35b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f3560e01c8063022661471461066857806302f10088146106305780631688c520146105f85780634caae80b146104455780634d1a785e14610386578063553f105214610211578063715018a6146101ba5780638da5cb5b146101935780639dcb511a14610153578063f04c98ca1461011b5763f2fde38b14610092575f80fd5b34610117576020366003190112610117576100ab610877565b6100b36109b8565b6001600160a01b03168015610104575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b34610117576020366003190112610117576001600160a01b0361013c610877565b165f526005602052602060405f2054604051908152f35b34610117576020366003190112610117576001600160a01b03610174610877565b165f526003602052602060018060a01b0360405f205416604051908152f35b34610117575f366003190112610117575f546040516001600160a01b039091168152602090f35b34610117575f366003190112610117576101d26109b8565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346101175760403660031901126101175760043567ffffffffffffffff81116101175761024290369060040161088d565b9060243567ffffffffffffffff81116101175761026390369060040161088d565b61026e9391936109b8565b808203610377575f5b8281106102d457507ef0adc2725143400230e3dfff76a588e42a30bd3e7e3dcf09f7beb17496640a936102c9916102bb604051958695606087526060870191610950565b918483036020860152610994565b4260408301520390a1005b6102e76102e2828587610918565b61093c565b906102f3818488610918565b35916001600160a01b0316801561036857821561035957600192815f52600560205260405f2055805f5260066020524260405f2055805f526003602052828060a01b0360405f20541615610349575b5001610277565b610352906109de565b5086610342565b631f2a200560e01b5f5260045ffd5b63d92e233d60e01b5f5260045ffd5b631fec674760e31b5f5260045ffd5b34610117575f366003190112610117576040518060206001549283815201809260015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6905f5b81811061042f57505050816103e49103826108cb565b604051918291602083019060208452518091526040830191905f5b81811061040d575050500390f35b82516001600160a01b03168452859450602093840193909201916001016103ff565b82548452602090930192600192830192016103ce565b346101175760603660031901126101175760043567ffffffffffffffff81116101175761047690369060040161088d565b9060243567ffffffffffffffff81116101175761049790369060040161088d565b929060443567ffffffffffffffff8111610117576104b990369060040161088d565b9190946104c46109b8565b808414806105ef575b15610377575f5b84811061053f57509161052c7f16405da8811e5730d9828551487bf6ce137d9f7f7a2368b4e4cf639809bc5d6c969261053a9461051e60405198899860608a5260608a0191610950565b918783036020890152610950565b918483036040860152610994565b0390a1005b6001600160a01b036105556102e283888a610918565b1690811515806105d0575b156103685761057081868a610918565b3515610359576001916105876102e2838688610918565b815f52600360205260405f2090848060a01b03166bffffffffffffffffffffffff60a01b8254161790556105bc82878b610918565b35905f52600460205260405f2055016104d4565b506001600160a01b036105e76102e2838688610918565b161515610560565b508284146104cd565b34610117576020366003190112610117576001600160a01b03610619610877565b165f526006602052602060405f2054604051908152f35b34610117576020366003190112610117576001600160a01b03610651610877565b165f526004602052602060405f2054604051908152f35b3461011757602036600319011261011757610681610877565b6001600160a01b039081165f81815260036020526040902054909116801561082457604051633fabe5a360e21b81529160a083600481855afa80156107b6575f935f916107d0575b505f841315610359576106dc90426108be565b905f52600460205260405f2054106107c15760206004916040519283809263313ce56760e01b82525afa80156107b6575f90610779575b60ff9150166012811161076a5760120360ff81116107565760ff16604d811161075657600a0a90818102918183041490151715610756576020905b604051908152f35b634e487b7160e01b5f52601160045260245ffd5b63e77b7c5560e01b5f5260045ffd5b506020813d6020116107ae575b81610793602093836108cb565b81010312610117575160ff811681036101175760ff90610713565b3d9150610786565b6040513d5f823e3d90fd5b631087e10960e01b5f5260045ffd5b93505060a0833d60a01161081c575b816107ec60a093836108cb565b81010312610117576107fd83610901565b506020830151610814608060608601519501610901565b5092846106c9565b3d91506107df565b50805f52600560205260405f20541561035957805f52600660205261106861085060405f2054426108be565b11610868575f526005602052602060405f205461074e565b633d76b6bf60e01b5f5260045ffd5b600435906001600160a01b038216820361011757565b9181601f840112156101175782359167ffffffffffffffff8311610117576020808501948460051b01011161011757565b9190820391821161075657565b90601f8019910116810190811067ffffffffffffffff8211176108ed57604052565b634e487b7160e01b5f52604160045260245ffd5b519069ffffffffffffffffffff8216820361011757565b91908110156109285760051b0190565b634e487b7160e01b5f52603260045260245ffd5b356001600160a01b03811681036101175790565b916020908281520191905f905b80821061096a5750505090565b90919283359060018060a01b0382168092036101175760208160019382935201940192019061095d565b81835290916001600160fb1b0383116101175760209260051b809284830137010190565b5f546001600160a01b031633036109cb57565b63118cdaa760e01b5f523360045260245ffd5b805f52600260205260405f2054155f14610a3657600154680100000000000000008110156108ed57600181018060015581101561092857819060015f5260205f200155600154905f52600260205260405f2055600190565b505f9056fea164736f6c634300081d000a000000000000000000000000d52903d24ccf86f99d9a382934004a2ad27b58f8