0 txs
0 calls
constructor
constructor()
functions
getToken0SqrtPriceX96
viewfunction getToken0SqrtPriceX96() view returns (uint160)
getTokenTWPrice
viewfunction getTokenTWPrice() view returns (uint256)
getTokenTWSqrtPriceX96
viewfunction getTokenTWSqrtPriceX96() view returns (uint160)
observations
viewfunction observations(uint256) view returns (uint32 blockTimestamp, uint160 sqrtPriceX96)
tokenAddr
viewfunction tokenAddr() view returns (address)
uniswapV3PoolAddr
viewfunction uniswapV3PoolAddr() view returns (address)
update
nonpayablefunction update()
events
No events.
errors
No errors.
creation bytecode
0x61012060405234801561001157600080fd5b50731f98431c8ad98523631ae4a59f267346ea31f98460805273c36442b4a4522e871399cd717abdd847ab11fe8860a05273e592427a0aece92de3edee1f18e0157c0586156460c05273ed3c66d23cb504b5d41e3314ef680b0328230cef60e05273d4519f4a905c4b6794a146a3852e4f74ceb66f17610100524260006100966100eb565b90506100e4600083836040805180820190915263ffffffff929092168083526001600160a01b0391909116602090920182905282546001600160c01b03191617640100000000909102179055565b5050610366565b60008060e05190506000816001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610133573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610157919061027c565b50505050505090506000816001600160a01b031690506000836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610320565b9050610100516001600160a01b0316816001600160a01b031614610200576101fd82600160c01b610344565b91505b6001600160a01b0382106102455760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b604482015260640160405180910390fd5b509392505050565b6001600160a01b038116811461026257600080fd5b50565b805161ffff8116811461027757600080fd5b919050565b600080600080600080600060e0888a03121561029757600080fd5b87516102a28161024d565b8097505060208801518060020b81146102ba57600080fd5b95506102c860408901610265565b94506102d660608901610265565b93506102e460808901610265565b925060a088015160ff811681146102fa57600080fd5b60c0890151909250801515811461031057600080fd5b8091505092959891949750929550565b60006020828403121561033257600080fd5b815161033d8161024d565b9392505050565b60008261036157634e487b7160e01b600052601260045260246000fd5b500490565b60805160a05160c05160e05161010051610d6b6103ae6000396000818160d301526102f601526000818161010201526101f30152600050506000505060005050610d6b6000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c8063252c09d7146100725780633af88083146100ae5780635fbe4d1d146100ce5780637932b641146100f55780637a213365146100fd578063a2e6204514610124578063deb15a731461012e575b600080fd5b610085610080366004610b1c565b610144565b6040805163ffffffff90931683526001600160a01b039091166020830152015b60405180910390f35b6100b6610172565b6040516001600160a01b0390911681526020016100a5565b6100b67f000000000000000000000000000000000000000000000000000000000000000081565b6100b66101ee565b6100b67f000000000000000000000000000000000000000000000000000000000000000081565b61012c61038c565b005b6101366103a9565b6040519081526020016100a5565b600081605a811061015457600080fd5b015463ffffffff81169150600160201b90046001600160a01b031682565b60408051610b4081019091526000906101e9904290839081605a81835b828210156101d657604080518082019091528483015463ffffffff81168252600160201b90046001600160a01b03166020808301919091529082526001909201910161018f565b505050506103e59092919063ffffffff16565b905090565b6000807f000000000000000000000000000000000000000000000000000000000000000090506000816001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102789190610b5c565b50505050505090506000816001600160a01b031690506000836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f29190610c00565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161461033e5761033b82600160c01b610c49565b91505b6001600160a01b0382106103845760405162461bcd60e51b81526020600482015260086024820152676f766572666c6f7760c01b60448201526064015b60405180910390fd5b509392505050565b4260006103976101ee565b90506103a5600083836107dd565b5050565b6000806103b4610172565b90506103df6103cc6001600160a01b03831680610c6b565b670de0b6b3a7640000600160c01b610914565b91505090565b600060015b605a8161ffff16101561050157848161ffff16605a811061040d5761040d610c82565b60200201515163ffffffff1615610501576000858261ffff16605a811061043657610436610c82565b60200201519050815b60008161ffff161180156104845750815163ffffffff1687610462600184610c98565b61ffff16605a811061047657610476610c82565b60200201515163ffffffff16115b156104db5786610495600183610c98565b61ffff16605a81106104a9576104a9610c82565b6020020151878261ffff16605a81106104c4576104c4610c82565b6020020152806104d381610cb2565b91505061043f565b81878261ffff16605a81106104f2576104f2610c82565b602002015250506001016103ea565b5060008060015b60598161ffff16101561071a57868161ffff16605a811061052b5761052b610c82565b60200201515163ffffffff166000036105d35760008761054c600184610c98565b61ffff16605a811061056057610560610c82565b6020020151516105709088610cd0565b905061057c8184610cec565b925063ffffffff811688610591600185610c98565b61ffff16605a81106105a5576105a5610c82565b6020020151602001516001600160a01b03166105c19190610c6b565b6105cb9085610d08565b93505061071a565b6000876105e1600184610c98565b61ffff16605a81106105f5576105f5610c82565b6020020151518861ffff8416605a811061061157610611610c82565b6020020151516106219190610cd0565b905061062d8184610cec565b925063ffffffff811688610642600185610c98565b61ffff16605a811061065657610656610c82565b6020020151602001516001600160a01b03166106729190610c6b565b61067c9085610d08565b9350851561071157610711888361ffff16605a811061069d5761069d610c82565b60200201515163ffffffff16896106b5600186610c98565b61ffff16605a81106106c9576106c9610c82565b60200201515163ffffffff9081169084168b6106e6600188610c98565b61ffff16605a81106106fa576106fa610c82565b6020020151602001516001600160a01b03166109c3565b50600101610508565b5060008163ffffffff16116107715760405162461bcd60e51b815260206004820181905260248201527f545377617031354f7261636c653a20746f74616c54696d65206973207a65726f604482015260640161037b565b6001600160a01b0382106107c15760405162461bcd60e51b8152602060048201526017602482015276545377617031354f7261636c653a206f766572666c6f7760481b604482015260640161037b565b6107d163ffffffff821683610c49565b925050505b9392505050565b60408051610b40810190915260009081906108489086605a84835b8282101561083f57604080518082019091528483015463ffffffff81168252600160201b90046001600160a01b0316602080830191909152908252600190920191016107f8565b50505050610a1d565b91509150816000015163ffffffff168463ffffffff161161086a575050505050565b8151600a906108799086610cd0565b63ffffffff16101561088c575050505050565b600061089782610ac3565b905060405180604001604052808663ffffffff168152602001856001600160a01b0316815250868261ffff16605a81106108d3576108d3610c82565b8251910180546020909301516001600160a01b0316600160201b026001600160c01b031990931663ffffffff90921691909117919091179055505050505050565b600080806000198587098587029250828110838203039150508060000361094e5783828161094457610944610c1d565b04925050506107d6565b80841161095a57600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60405160248101859052604481018490526064810183905260848101829052610a179060a40160408051601f198184030181529190526020810180516001600160e01b0316620327f760eb1b179052610aef565b50505050565b604080518082019091526000808252602082015260008080805b605a8161ffff161015610a9d578263ffffffff16868261ffff16605a8110610a6157610a61610c82565b60200201515163ffffffff161115610a9557858161ffff16605a8110610a8957610a89610c82565b60200201515192509050805b600101610a37565b50848161ffff16605a8110610ab457610ab4610c82565b60200201519590945092505050565b60008161ffff16605903610ad957506000919050565b610ae4826001610d1b565b92915050565b919050565b610af881610afb565b50565b60006a636f6e736f6c652e6c6f679050600080835160208501845afa505050565b600060208284031215610b2e57600080fd5b5035919050565b6001600160a01b0381168114610af857600080fd5b805161ffff81168114610aea57600080fd5b600080600080600080600060e0888a031215610b7757600080fd5b8751610b8281610b35565b8097505060208801518060020b8114610b9a57600080fd5b9550610ba860408901610b4a565b9450610bb660608901610b4a565b9350610bc460808901610b4a565b925060a088015160ff81168114610bda57600080fd5b60c08901519092508015158114610bf057600080fd5b8091505092959891949750929550565b600060208284031215610c1257600080fd5b81516107d681610b35565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082610c6657634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610ae457610ae4610c33565b634e487b7160e01b600052603260045260246000fd5b61ffff8281168282160390811115610ae457610ae4610c33565b600061ffff821680610cc657610cc6610c33565b6000190192915050565b63ffffffff8281168282160390811115610ae457610ae4610c33565b63ffffffff8181168382160190811115610ae457610ae4610c33565b80820180821115610ae457610ae4610c33565b61ffff8181168382160190811115610ae457610ae4610c3356fea2646970667358221220d8136b9086ff6db2e4e894eef84ce3c526ec00f1a1cdf95405c2229157191dd964736f6c634300081b0033