0 txs
0 calls
constructor
constructor()
functions
assetPriceOracle
viewfunction assetPriceOracle(address asset) view returns (address priceOracle)
getAssetPrice
viewfunction getAssetPrice(address asset) view returns (uint256)
lrtConfig
viewfunction lrtConfig() view returns (address)
pricePercentageLimit
viewfunction pricePercentageLimit() view returns (uint256)
rsETHPrice
viewfunction rsETHPrice() view returns (uint256)
initialize
nonpayablefunction initialize(address lrtConfigAddr)
setPricePercentageLimit
nonpayablefunction setPricePercentageLimit(uint256 _pricePercentageLimit)
updatePriceOracleFor
nonpayablefunction updatePriceOracleFor(address asset, address priceOracle)
updatePriceOracleForValidated
nonpayablefunction updatePriceOracleForValidated(address asset, address priceOracle)
updateRSETHPrice
nonpayablefunction updateRSETHPrice()
events
AssetPriceOracleUpdate
event AssetPriceOracleUpdate(address indexed asset, address indexed priceOracle)
FeeMinted
event FeeMinted(address treasury, uint256 rsethAmount)
Initialized
event Initialized(uint8 version)
PricePercentageLimitUpdate
event PricePercentageLimitUpdate(uint256 newLimit)
RsETHPriceUpdate
event RsETHPriceUpdate(uint256 newPrice, uint256 oldPrice)
UpdatedLRTConfig
event UpdatedLRTConfig(address indexed lrtConfig)
errors
AssetOracleNotSupported
error AssetOracleNotSupported()
CallerNotLRTConfigAdmin
error CallerNotLRTConfigAdmin()
InvalidPriceOracle
error InvalidPriceOracle()
RSETHPriceExceedsLimit
error RSETHPriceExceedsLimit()
ZeroAddressNotAllowed
error ZeroAddressNotAllowed()
creation bytecode
0x608060405234801561000f575f80fd5b5061001861001d565b6100e6565b5f54600160a81b900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b5f54600160a01b900460ff908116146100e4575f805460ff60a01b191660ff60a01b17905560405160ff81527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6113e0806100f35f395ff3fe608060405234801561000f575f80fd5b50600436106100b9575f3560e01c8063b3596f0711610072578063c4d66de811610058578063c4d66de81461017f578063cc8f115914610192578063f1650a46146101a5575f80fd5b8063b3596f0714610163578063b4b4643414610176575f80fd5b8063903e8c61116100a2578063903e8c61146100da578063959f566714610139578063b06dded41461014c575f80fd5b806310e50dfa146100bd57806351ce226a146100d2575b5f80fd5b6100d06100cb366004611106565b6101c4565b005b6100d0610314565b61010f6100e836600461113d565b60016020525f908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100d0610147366004611158565b610792565b61015560035481565b604051908152602001610130565b61015561017136600461113d565b610899565b61015560025481565b6100d061018d36600461113d565b6109a2565b6100d06101a0366004611106565b610c08565b5f5461010f9073ffffffffffffffffffffffffffffffffffffffff1681565b5f80546040517f91d14854000000000000000000000000000000000000000000000000000000008152600481019290925233602483015273ffffffffffffffffffffffffffffffffffffffff16906391d1485490604401602060405180830381865afa158015610236573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061025a919061116f565b610290576040517f164931f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61029981610dca565b73ffffffffffffffffffffffffffffffffffffffff8281165f8181526001602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169486169485179055517f72ac677bb38d8bb6988cfebe29d6caef19753725c2dc2c54edc2c22ed79dcaa69190a35050565b6002545f8054604080517eb83bce000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169162b83bce916004808201926020929091908290030181865afa158015610383573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103a7919061119e565b90505f8173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f3573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061041791906111b9565b9050805f03610431575050670de0b6b3a764000060025550565b5f61043a610e1a565b90505f8061044884846111fd565b905085811115610527575f61045d8783611235565b90505f670de0b6b3a76400006104738784611248565b61047d91906111fd565b90506127105f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663286893e76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050e91906111b9565b6105189083611248565b61052291906111fd565b935050505b508261053b82670de0b6b3a7640000611248565b6105459084611235565b61054f91906111fd565b60028190555f9061056883670de0b6b3a7640000611248565b61057291906111fd565b905061058086600254611078565b156105b7576040517f0872252b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60025460408051918252602082018890527f8d3b19635cf6f25b423571483e205b44b40c0c8f35f76e22089c6750c717bf17910160405180910390a1805f0361060257505050505050565b5f80546040517fe16c7d980000000000000000000000000000000000000000000000000000000081527f1541fdd8528986f8978a20cc3e2a7f06166bc4e636cbe12e45e82b00f91dec5a600482015273ffffffffffffffffffffffffffffffffffffffff9091169063e16c7d9890602401602060405180830381865afa15801561068e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b2919061119e565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808316600483015260248201859052919250908716906340c10f19906044015f604051808303815f87803b158015610723575f80fd5b505af1158015610735573d5f803e3d5ffd5b50506040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018690527fbbc316f92387a82e2f88e54dbef5d256aff3e9ea87e87bbd9bdba9d48c769941935001905060405180910390a150505050505050565b5f80546040517f91d14854000000000000000000000000000000000000000000000000000000008152600481019290925233602483015273ffffffffffffffffffffffffffffffffffffffff16906391d1485490604401602060405180830381865afa158015610804573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610828919061116f565b61085e576040517f164931f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038190556040518181527fd89c3aeacf5a0bdb06ee7d8b44ed4e15174ebee9d916d6cf9fdeb7bbab510bd19060200160405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff8082165f9081526001602052604081205490918391166108fa576040517f762798e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f81815260016020526040908190205490517fb3596f0700000000000000000000000000000000000000000000000000000000815260048101929092529091169063b3596f0790602401602060405180830381865afa158015610977573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061099b91906111b9565b9392505050565b5f547501000000000000000000000000000000000000000000900460ff16158080156109eb57505f5460017401000000000000000000000000000000000000000090910460ff16105b80610a1c5750303b158015610a1c57505f5474010000000000000000000000000000000000000000900460ff166001145b610aac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840160405180910390fd5b5f80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790558015610b30575f80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790555b610b3982610dca565b5f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117825560405190917f9cf19cefd9aab739c33b95716ee3f3f921f219dc6d7aae25e1f9497b3788915091a28015610c04575f80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b5f80546040517f91d14854000000000000000000000000000000000000000000000000000000008152600481019290925233602483015273ffffffffffffffffffffffffffffffffffffffff16906391d1485490604401602060405180830381865afa158015610c7a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9e919061116f565b610cd4576040517f164931f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fb3596f0700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f919083169063b3596f0790602401602060405180830381865afa158015610d41573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d6591906111b9565b9050678ac7230489e80000811180610d845750670de0b6b3a764000081105b15610dbb576040517f6077d21b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dc583836101c4565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116610e17576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f80546040517fe16c7d980000000000000000000000000000000000000000000000000000000081527f7a8fe1bac8d7638862c53b62ffada56d0a56c381287c35f66503b5b86fa88b856004820152829173ffffffffffffffffffffffffffffffffffffffff169063e16c7d9890602401602060405180830381865afa158015610ea6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eca919061119e565b90505f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663770672a66040518163ffffffff1660e01b81526004015f60405180830381865afa158015610f35573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610f7a919081019061128c565b80519091505f5b818161ffff161015611071575f838261ffff1681518110610fa457610fa461136a565b602002602001015190505f610fb882610899565b6040517f52c4889f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301529192505f918816906352c4889f90602401602060405180830381865afa158015611027573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061104b91906111b9565b90506110578282611248565b6110619089611397565b9750836001019350505050610f81565b5050505090565b5f81830361108757505f6110df565b6003545f0361109757505f6110df565b5f8284116110ae576110a98484611235565b6110b8565b6110b88385611235565b9050670de0b6b3a7640000846003546110d19190611248565b6110db91906111fd565b1090505b92915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610e17575f80fd5b5f8060408385031215611117575f80fd5b8235611122816110e5565b91506020830135611132816110e5565b809150509250929050565b5f6020828403121561114d575f80fd5b813561099b816110e5565b5f60208284031215611168575f80fd5b5035919050565b5f6020828403121561117f575f80fd5b8151801515811461099b575f80fd5b8051611199816110e5565b919050565b5f602082840312156111ae575f80fd5b815161099b816110e5565b5f602082840312156111c9575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f82611230577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b818103818111156110df576110df6111d0565b80820281158282048414176110df576110df6111d0565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f602080838503121561129d575f80fd5b825167ffffffffffffffff808211156112b4575f80fd5b818501915085601f8301126112c7575f80fd5b8151818111156112d9576112d961125f565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561131c5761131c61125f565b604052918252848201925083810185019188831115611339575f80fd5b938501935b8285101561135e5761134f8561118e565b8452938501939285019261133e565b98975050505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b808201808211156110df576110df6111d056fea2646970667358221220c3c2d23d3ef5ec8f14c0d7b07f059bd3d05f08ba7aadee1ea8f78fec283e2bd964736f6c63430008150033