1 line
67 KiB
JSON
1 line
67 KiB
JSON
{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"UPGRADE_INTERFACE_VERSION","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"addLiquidity","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"},{"name":"_minUsdy","type":"uint256","internalType":"uint256"},{"name":"_minYtLP","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"getAccountValue","inputs":[{"name":"_account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getYtLPPrice","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"gov","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"initialize","inputs":[{"name":"_usdy","type":"address","internalType":"address"},{"name":"_ytLP","type":"address","internalType":"address"},{"name":"_ytPoolManager","type":"address","internalType":"address"},{"name":"_ytVault","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"pause","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"paused","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"proxiableUUID","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"removeLiquidity","inputs":[{"name":"_tokenOut","type":"address","internalType":"address"},{"name":"_ytLPAmount","type":"uint256","internalType":"uint256"},{"name":"_minOut","type":"uint256","internalType":"uint256"},{"name":"_receiver","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"swapYT","inputs":[{"name":"_tokenIn","type":"address","internalType":"address"},{"name":"_tokenOut","type":"address","internalType":"address"},{"name":"_amountIn","type":"uint256","internalType":"uint256"},{"name":"_minOut","type":"uint256","internalType":"uint256"},{"name":"_receiver","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"unpause","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"upgradeToAndCall","inputs":[{"name":"newImplementation","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"usdy","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"ytLP","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"ytPoolManager","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"ytVault","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"Initialized","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Swap","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIn","type":"address","indexed":false,"internalType":"address"},{"name":"tokenOut","type":"address","indexed":false,"internalType":"address"},{"name":"amountIn","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amountOut","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"name":"account","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"AddressEmptyCode","inputs":[{"name":"target","type":"address","internalType":"address"}]},{"type":"error","name":"AlreadyInitialized","inputs":[]},{"type":"error","name":"ERC1967InvalidImplementation","inputs":[{"name":"implementation","type":"address","internalType":"address"}]},{"type":"error","name":"ERC1967NonPayable","inputs":[]},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"ExpectedPause","inputs":[]},{"type":"error","name":"FailedCall","inputs":[]},{"type":"error","name":"Forbidden","inputs":[]},{"type":"error","name":"InsufficientOutput","inputs":[]},{"type":"error","name":"InvalidAddress","inputs":[]},{"type":"error","name":"InvalidAmount","inputs":[]},{"type":"error","name":"InvalidInitialization","inputs":[]},{"type":"error","name":"NotInitializing","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"UUPSUnauthorizedCallContext","inputs":[]},{"type":"error","name":"UUPSUnsupportedProxiableUUID","inputs":[{"name":"slot","type":"bytes32","internalType":"bytes32"}]}],"bytecode":{"object":"0x60a080604052346100c257306080525f5160206110f25f395f51905f525460ff8160401c166100b3576002600160401b03196001600160401b03821601610060575b60405161102b90816100c782396080518181816108be015261098e0152f35b6001600160401b0319166001600160401b039081175f5160206110f25f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80610041565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816312d43a5114610dbf575080631ece366a14610c5d5780631fb73c8b14610bd55780633f4ba83a14610b4e5780634f1ef2861461091257806352d1902d146108ac5780635ae809511461077b5780635c975abb1461074d578063778d733d146107255780638456cb591461069c57806384a08e63146106745780638fed0b2c1461058e578063925a9aef146103b757806398d506e91461038f578063ad3cb1cc14610331578063e348031b146103095763f8c8765e146100d7575f80fd5b34610305576080366003190112610305576100f0610de1565b6100f8610e0d565b6044356001600160a01b0381169081900361030557610115610df7565b5f516020610fd65f395f51905f52549360ff8560401c16159467ffffffffffffffff8116801590816102fd575b60011490816102f3575b1590816102ea575b506102db5767ffffffffffffffff1981166001175f516020610fd65f395f51905f5255856102af575b506001600160a01b03169283156102a0576001600160a01b03169081156102a05782156102a0576001600160a01b03169283156102a0576101bc610eec565b6101c4610eec565b60015f516020610fb65f395f51905f52556101dd610eec565b6101e5610eec565b336001600160601b0360a01b5f5416175f556001600160601b0360a01b60015416176001556001600160601b0360a01b60025416176002556001600160601b0360a01b60035416176003556001600160601b0360a01b600454161760045561024957005b68ff0000000000000000195f516020610fd65f395f51905f5254165f516020610fd65f395f51905f52557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b63e6c4247b60e01b5f5260045ffd5b68ffffffffffffffffff191668010000000000000001175f516020610fd65f395f51905f52555f61017d565b63f92ee8a960e01b5f5260045ffd5b9050155f610154565b303b15915061014c565b879150610142565b5f80fd5b34610305575f366003190112610305576002546040516001600160a01b039091168152602090f35b34610305575f3660031901126103055760408051906103508183610e23565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b34610305575f366003190112610305576001546040516001600160a01b039091168152602090f35b346103055760a0366003190112610305576103d0610de1565b6103d8610e0d565b6084356001600160a01b03811692919060443590849003610305576103fb610e8d565b610403610ec5565b801561057f57600480546040516323b872dd60e01b815233928101929092526001600160a01b03908116602483015260448201839052909316916020846064815f875af1908115610549575f94602092610554575b5060048054604051634998b10960e11b81529182018690526001600160a01b0392831660248301819052604483019890985290958692606492849291165af1928315610549575f93610515575b506064358310610506576020936040519283528483015260408201528160608201527fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e4606260803392a260015f516020610fb65f395f51905f5255604051908152f35b63bb2875c360e01b5f5260045ffd5b9092506020813d602011610541575b8161053160209383610e23565b81010312610305575191846104a5565b3d9150610524565b6040513d5f823e3d90fd5b61057390833d8511610578575b61056b8183610e23565b810190610e75565b610458565b503d610561565b63162908e360e11b5f5260045ffd5b34610305576080366003190112610305576105a7610de1565b602435906105b3610df7565b916105bc610e8d565b6105c4610ec5565b801561057f576003546040516371d597ad60e01b81523360048201526001600160a01b03938416602482015260448082019390935291356064830152928216608482015291602091839160a49183915f91165af18015610549575f90610641575b60209060015f516020610fb65f395f51905f5255604051908152f35b506020813d60201161066c575b8161065b60209383610e23565b810103126103055760209051610625565b3d915061064e565b34610305575f366003190112610305576004546040516001600160a01b039091168152602090f35b34610305575f366003190112610305575f546001600160a01b03163303610716576106c5610ec5565b600160ff195f516020610f965f395f51905f525416175f516020610f965f395f51905f52557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b631dd2188d60e31b5f5260045ffd5b34610305575f366003190112610305576003546040516001600160a01b039091168152602090f35b34610305575f36600319011261030557602060ff5f516020610f965f395f51905f5254166040519015158152f35b3461030557602036600319011261030557610794610de1565b6002546040516370a0823160e01b81526001600160a01b0392831660048201529160209183916024918391165afa8015610549575f90610879575b60035460405163e245b5af60e01b8152600160048201529250602090839060249082906001600160a01b03165afa918215610549575f92610845575b5081810291818304149015171561083157602090670de0b6b3a764000060405191048152f35b634e487b7160e01b5f52601160045260245ffd5b9091506020813d602011610871575b8161086160209383610e23565b810103126103055751908261080b565b3d9150610854565b506020813d6020116108a4575b8161089360209383610e23565b8101031261030557602490516107cf565b3d9150610886565b34610305575f366003190112610305577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036109035760206040515f516020610f765f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b604036600319011261030557610926610de1565b6024359067ffffffffffffffff821161030557366023830112156103055781600401359061095382610e59565b916109616040519384610e23565b8083526020830193366024838301011161030557815f926024602093018737840101526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610b2c575b50610903575f546001600160a01b03163303610716576040516352d1902d60e01b81526001600160a01b0382169390602081600481885afa5f9181610af8575b50610a115784634c9c8ce360e01b5f5260045260245ffd5b805f516020610f765f395f51905f52869203610ae65750823b15610ad4575f516020610f765f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2825115610abb575f8091610ab1945190845af43d15610ab3573d91610a9583610e59565b92610aa36040519485610e23565b83523d5f602085013e610f17565b005b606091610f17565b50505034610ac557005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610b24575b81610b1460209383610e23565b81010312610305575190866109f9565b3d9150610b07565b5f516020610f765f395f51905f52546001600160a01b031614159050846109b9565b34610305575f366003190112610305575f546001600160a01b03163303610716575f516020610f965f395f51905f525460ff811615610bc65760ff19165f516020610f965f395f51905f52557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b638dfc202b60e01b5f5260045ffd5b34610305575f3660031901126103055760035460405163e245b5af60e01b81526001600482015290602090829060249082906001600160a01b03165afa8015610549575f90610c2a575b602090604051908152f35b506020813d602011610c55575b81610c4460209383610e23565b810103126103055760209051610c1f565b3d9150610c37565b3461030557608036600319011261030557610c76610de1565b60243590610c82610e8d565b610c8a610ec5565b811561057f576040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b039190911691906020816064815f875af1801561054957610da2575b5060035460405163095ea7b360e01b81526001600160a01b03909116600482015260248101829052906020826044815f875af191821561054957602092610d87575b5060c460018060a01b0360035416935f60405195869485936317eb2a1560e01b855230600486015233602486015260448501526064840152604435608484015260643560a48401525af18015610549575f906106415760209060015f516020610fb65f395f51905f5255604051908152f35b610d9d90833d85116105785761056b8183610e23565b610d15565b610dba9060203d6020116105785761056b8183610e23565b610cd3565b34610305575f366003190112610305575f546001600160a01b03168152602090f35b600435906001600160a01b038216820361030557565b606435906001600160a01b038216820361030557565b602435906001600160a01b038216820361030557565b90601f8019910116810190811067ffffffffffffffff821117610e4557604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610e4557601f01601f191660200190565b90816020910312610305575180151581036103055790565b60025f516020610fb65f395f51905f525414610eb65760025f516020610fb65f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b60ff5f516020610f965f395f51905f525416610edd57565b63d93c066560e01b5f5260045ffd5b60ff5f516020610fd65f395f51905f525460401c1615610f0857565b631afcd79f60e31b5f5260045ffd5b90610f3b5750805115610f2c57602081519101fd5b63d6bda27560e01b5f5260045ffd5b81511580610f6c575b610f4c575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b15610f4456fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a26469706673582212201fd1b8c3829b6080960ce85f9704a7f5b70ea50cec4357bc21bf1593eece063f64736f6c634300081e0033f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00","sourceMap":"671:5793:18:-:0;;;;;;;1171:4:46;1163:13;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;;;;7894:76:45;;-1:-1:-1;;;;;;;;;;;671:5793:18;;7983:34:45;7979:146;;-1:-1:-1;671:5793:18;;;;;;;;1163:13:46;671:5793:18;;;;;;;;;;;7979:146:45;-1:-1:-1;;;;;;671:5793:18;-1:-1:-1;;;;;671:5793:18;;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;8085:29:45;;671:5793:18;;8085:29:45;7979:146;;;;7894:76;7936:23;;;-1:-1:-1;7936:23:45;;-1:-1:-1;7936:23:45;671:5793:18;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080806040526004361015610012575f80fd5b5f3560e01c90816312d43a5114610dbf575080631ece366a14610c5d5780631fb73c8b14610bd55780633f4ba83a14610b4e5780634f1ef2861461091257806352d1902d146108ac5780635ae809511461077b5780635c975abb1461074d578063778d733d146107255780638456cb591461069c57806384a08e63146106745780638fed0b2c1461058e578063925a9aef146103b757806398d506e91461038f578063ad3cb1cc14610331578063e348031b146103095763f8c8765e146100d7575f80fd5b34610305576080366003190112610305576100f0610de1565b6100f8610e0d565b6044356001600160a01b0381169081900361030557610115610df7565b5f516020610fd65f395f51905f52549360ff8560401c16159467ffffffffffffffff8116801590816102fd575b60011490816102f3575b1590816102ea575b506102db5767ffffffffffffffff1981166001175f516020610fd65f395f51905f5255856102af575b506001600160a01b03169283156102a0576001600160a01b03169081156102a05782156102a0576001600160a01b03169283156102a0576101bc610eec565b6101c4610eec565b60015f516020610fb65f395f51905f52556101dd610eec565b6101e5610eec565b336001600160601b0360a01b5f5416175f556001600160601b0360a01b60015416176001556001600160601b0360a01b60025416176002556001600160601b0360a01b60035416176003556001600160601b0360a01b600454161760045561024957005b68ff0000000000000000195f516020610fd65f395f51905f5254165f516020610fd65f395f51905f52557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b63e6c4247b60e01b5f5260045ffd5b68ffffffffffffffffff191668010000000000000001175f516020610fd65f395f51905f52555f61017d565b63f92ee8a960e01b5f5260045ffd5b9050155f610154565b303b15915061014c565b879150610142565b5f80fd5b34610305575f366003190112610305576002546040516001600160a01b039091168152602090f35b34610305575f3660031901126103055760408051906103508183610e23565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b34610305575f366003190112610305576001546040516001600160a01b039091168152602090f35b346103055760a0366003190112610305576103d0610de1565b6103d8610e0d565b6084356001600160a01b03811692919060443590849003610305576103fb610e8d565b610403610ec5565b801561057f57600480546040516323b872dd60e01b815233928101929092526001600160a01b03908116602483015260448201839052909316916020846064815f875af1908115610549575f94602092610554575b5060048054604051634998b10960e11b81529182018690526001600160a01b0392831660248301819052604483019890985290958692606492849291165af1928315610549575f93610515575b506064358310610506576020936040519283528483015260408201528160608201527fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e4606260803392a260015f516020610fb65f395f51905f5255604051908152f35b63bb2875c360e01b5f5260045ffd5b9092506020813d602011610541575b8161053160209383610e23565b81010312610305575191846104a5565b3d9150610524565b6040513d5f823e3d90fd5b61057390833d8511610578575b61056b8183610e23565b810190610e75565b610458565b503d610561565b63162908e360e11b5f5260045ffd5b34610305576080366003190112610305576105a7610de1565b602435906105b3610df7565b916105bc610e8d565b6105c4610ec5565b801561057f576003546040516371d597ad60e01b81523360048201526001600160a01b03938416602482015260448082019390935291356064830152928216608482015291602091839160a49183915f91165af18015610549575f90610641575b60209060015f516020610fb65f395f51905f5255604051908152f35b506020813d60201161066c575b8161065b60209383610e23565b810103126103055760209051610625565b3d915061064e565b34610305575f366003190112610305576004546040516001600160a01b039091168152602090f35b34610305575f366003190112610305575f546001600160a01b03163303610716576106c5610ec5565b600160ff195f516020610f965f395f51905f525416175f516020610f965f395f51905f52557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b631dd2188d60e31b5f5260045ffd5b34610305575f366003190112610305576003546040516001600160a01b039091168152602090f35b34610305575f36600319011261030557602060ff5f516020610f965f395f51905f5254166040519015158152f35b3461030557602036600319011261030557610794610de1565b6002546040516370a0823160e01b81526001600160a01b0392831660048201529160209183916024918391165afa8015610549575f90610879575b60035460405163e245b5af60e01b8152600160048201529250602090839060249082906001600160a01b03165afa918215610549575f92610845575b5081810291818304149015171561083157602090670de0b6b3a764000060405191048152f35b634e487b7160e01b5f52601160045260245ffd5b9091506020813d602011610871575b8161086160209383610e23565b810103126103055751908261080b565b3d9150610854565b506020813d6020116108a4575b8161089360209383610e23565b8101031261030557602490516107cf565b3d9150610886565b34610305575f366003190112610305577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036109035760206040515f516020610f765f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b604036600319011261030557610926610de1565b6024359067ffffffffffffffff821161030557366023830112156103055781600401359061095382610e59565b916109616040519384610e23565b8083526020830193366024838301011161030557815f926024602093018737840101526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610b2c575b50610903575f546001600160a01b03163303610716576040516352d1902d60e01b81526001600160a01b0382169390602081600481885afa5f9181610af8575b50610a115784634c9c8ce360e01b5f5260045260245ffd5b805f516020610f765f395f51905f52869203610ae65750823b15610ad4575f516020610f765f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2825115610abb575f8091610ab1945190845af43d15610ab3573d91610a9583610e59565b92610aa36040519485610e23565b83523d5f602085013e610f17565b005b606091610f17565b50505034610ac557005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610b24575b81610b1460209383610e23565b81010312610305575190866109f9565b3d9150610b07565b5f516020610f765f395f51905f52546001600160a01b031614159050846109b9565b34610305575f366003190112610305575f546001600160a01b03163303610716575f516020610f965f395f51905f525460ff811615610bc65760ff19165f516020610f965f395f51905f52557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b638dfc202b60e01b5f5260045ffd5b34610305575f3660031901126103055760035460405163e245b5af60e01b81526001600482015290602090829060249082906001600160a01b03165afa8015610549575f90610c2a575b602090604051908152f35b506020813d602011610c55575b81610c4460209383610e23565b810103126103055760209051610c1f565b3d9150610c37565b3461030557608036600319011261030557610c76610de1565b60243590610c82610e8d565b610c8a610ec5565b811561057f576040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b039190911691906020816064815f875af1801561054957610da2575b5060035460405163095ea7b360e01b81526001600160a01b03909116600482015260248101829052906020826044815f875af191821561054957602092610d87575b5060c460018060a01b0360035416935f60405195869485936317eb2a1560e01b855230600486015233602486015260448501526064840152604435608484015260643560a48401525af18015610549575f906106415760209060015f516020610fb65f395f51905f5255604051908152f35b610d9d90833d85116105785761056b8183610e23565b610d15565b610dba9060203d6020116105785761056b8183610e23565b610cd3565b34610305575f366003190112610305575f546001600160a01b03168152602090f35b600435906001600160a01b038216820361030557565b606435906001600160a01b038216820361030557565b602435906001600160a01b038216820361030557565b90601f8019910116810190811067ffffffffffffffff821117610e4557604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610e4557601f01601f191660200190565b90816020910312610305575180151581036103055790565b60025f516020610fb65f395f51905f525414610eb65760025f516020610fb65f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b60ff5f516020610f965f395f51905f525416610edd57565b63d93c066560e01b5f5260045ffd5b60ff5f516020610fd65f395f51905f525460401c1615610f0857565b631afcd79f60e31b5f5260045ffd5b90610f3b5750805115610f2c57602081519101fd5b63d6bda27560e01b5f5260045ffd5b81511580610f6c575b610f4c575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b15610f4456fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a26469706673582212201fd1b8c3829b6080960ce85f9704a7f5b70ea50cec4357bc21bf1593eece063f64736f6c634300081e0033","sourceMap":"671:5793:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;;;:::i;:::-;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;671:5793:18;;;;;;;4301:16:45;671:5793:18;;;;4724:16:45;;:34;;;;671:5793:18;4803:1:45;4788:16;:50;;;;671:5793:18;4853:13:45;:30;;;;671:5793:18;4849:91:45;;;-1:-1:-1;;671:5793:18;;4803:1:45;671:5793:18;-1:-1:-1;;;;;;;;;;;671:5793:18;;4977:67:45;;671:5793:18;-1:-1:-1;;;;;;671:5793:18;;1859:19;;1855:48;;-1:-1:-1;;;;;671:5793:18;;1917:19;;1913:48;;1975:28;;1971:57;;-1:-1:-1;;;;;671:5793:18;;2042:22;;2038:51;;6891:76:45;;:::i;:::-;;;:::i;:::-;4803:1;-1:-1:-1;;;;;;;;;;;1991:1:50;6891:76:45;;:::i;:::-;;;:::i;:::-;2218:10:18;-1:-1:-1;;;;;671:5793:18;;;;;;;;-1:-1:-1;;;;;671:5793:18;;4803:1:45;671:5793:18;;;4803:1:45;671:5793:18;-1:-1:-1;;;;;671:5793:18;;2261:12;671:5793;;;2261:12;671:5793;-1:-1:-1;;;;;671:5793:18;;2283:30;671:5793;;;2283:30;671:5793;-1:-1:-1;;;;;671:5793:18;;;;;;;;5064:101:45;;671:5793:18;5064:101:45;671:5793:18;;-1:-1:-1;;;;;;;;;;;671:5793:18;;-1:-1:-1;;;;;;;;;;;671:5793:18;5140:14:45;671:5793:18;;;4803:1:45;671:5793:18;;5140:14:45;671:5793:18;2038:51;1887:16;;;671:5793;2073:16;671:5793;;2073:16;4977:67:45;-1:-1:-1;;671:5793:18;;;-1:-1:-1;;;;;;;;;;;671:5793:18;4977:67:45;;;4849:91;4906:23;;;671:5793:18;4906:23:45;671:5793:18;;4906:23:45;4853:30;4870:13;;;4853:30;;;4788:50;4816:4;4808:25;:30;;-1:-1:-1;4788:50:45;;4724:34;;;-1:-1:-1;4724:34:45;;671:5793:18;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;1133:19;671:5793;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;671:5793:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;;;:::i;:::-;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;3361:103:50;;:::i;:::-;1944:72:49;;:::i;:::-;5186:14:18;;5182:42;;671:5793;;;;;-1:-1:-1;;;5290:58:18;;5261:10;5290:58;;;671:5793;;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;671:5793:18;5290:58;;;;;;;671:5793;5290:58;671:5793;5290:58;;;671:5793;-1:-1:-1;671:5793:18;;;;;-1:-1:-1;;;5387:54:18;;;;;671:5793;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;;;;;;;;;;;;;5387:54;;;;;;;671:5793;5387:54;;;671:5793;;;;5464:19;;5460:52;;671:5793;;;;;;;;;;;;;;;;;;;;5536:56;671:5793;5261:10;5536:56;;671:5793;-1:-1:-1;;;;;;;;;;;1991:1:50;671:5793:18;;;;;;5460:52;5492:20;;;671:5793;5492:20;671:5793;;5492:20;5387:54;;;;671:5793;5387:54;;671:5793;5387:54;;;;;;671:5793;5387:54;;;:::i;:::-;;;671:5793;;;;;5387:54;;;;;;;-1:-1:-1;5387:54:18;;;671:5793;;;;;;;;;5290:58;;;;;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;5182:42;3371:15;;;671:5793;5209:15;671:5793;;5209:15;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;;;;;;:::i;:::-;3361:103:50;;;:::i;:::-;1944:72:49;;:::i;:::-;4315:16:18;;4311:44;;4456:13;671:5793;;;-1:-1:-1;;;4441:178:18;;4392:10;671:5793;4441:178;;671:5793;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4441:178;;671:5793;;;;;4441:178;;;;;;671:5793;4441:178;;;671:5793;;1991:1:50;671:5793:18;-1:-1:-1;;;;;;;;;;;1991:1:50;671:5793:18;;;;;;4441:178;;671:5793;4441:178;;671:5793;4441:178;;;;;;671:5793;4441:178;;;:::i;:::-;;;671:5793;;;;;;;4441:178;;;;;-1:-1:-1;4441:178:18;;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;;;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;-1:-1:-1;;;;;671:5793:18;1422:10;:17;1418:41;;1944:72:49;;:::i;:::-;3300:4;671:5793:18;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;-1:-1:-1;;;;;;;;;;;671:5793:18;3319:20:49;671:5793:18;;;1422:10;671:5793;;3319:20:49;671:5793:18;1418:41;1448:11;;;671:5793;1448:11;671:5793;;1448:11;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;1158:28;671:5793;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;;;;;;;;;;;;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;6126:4;671:5793;;;-1:-1:-1;;;6119:32:18;;-1:-1:-1;;;;;671:5793:18;;;;6119:32;;671:5793;;;;;;6119:32;;671:5793;;;6119:32;;;;;;671:5793;6119:32;;;671:5793;6196:13;671:5793;;;-1:-1:-1;;;6181:44:18;;671:5793;;6181:44;;671:5793;;-1:-1:-1;671:5793:18;;;;6119:32;;671:5793;;-1:-1:-1;;;;;671:5793:18;6181:44;;;;;;;671:5793;6181:44;;;671:5793;;;;;;;;;;;;;;;;;;6269:8;671:5793;;;;;;;;;;;;;;;;6119:32;671:5793;;6181:44;;;;671:5793;6181:44;;671:5793;6181:44;;;;;;671:5793;6181:44;;;:::i;:::-;;;671:5793;;;;;6181:44;;;;;;;-1:-1:-1;6181:44:18;;6119:32;;671:5793;6119:32;;671:5793;6119:32;;;;;;671:5793;6119:32;;;:::i;:::-;;;671:5793;;;;6119:32;671:5793;;6119:32;;;;;-1:-1:-1;6119:32:18;;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;5090:6:46;-1:-1:-1;;;;;671:5793:18;5081:4:46;5073:23;5069:145;;671:5793:18;;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;5069:145:46;4844:29;;;671:5793:18;5174:29:46;671:5793:18;;5174:29:46;671:5793:18;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4667:6:46;671:5793:18;4658:4:46;4650:23;;;:120;;;;671:5793:18;4633:251:46;;;671:5793:18;;-1:-1:-1;;;;;671:5793:18;1422:10;:17;1418:41;;671:5793;;-1:-1:-1;;;6131:52:46;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;6131:52:46;;671:5793:18;;6131:52:46;;;671:5793:18;-1:-1:-1;6127:437:46;;1805:47:59;;;;671:5793:18;6493:60:46;671:5793:18;;;;6493:60:46;6127:437;6225:40;-1:-1:-1;;;;;;;;;;;6225:40:46;;;6221:120;;1748:29:59;;;:34;1744:119;;-1:-1:-1;;;;;;;;;;;671:5793:18;;-1:-1:-1;;;;;;671:5793:18;;;;;2407:36:59;-1:-1:-1;;2407:36:59;671:5793:18;;2458:15:59;:11;;671:5793:18;4065:25:66;;4107:55;4065:25;;;;;;671:5793:18;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;4107:55:66;:::i;:::-;671:5793:18;;;;4107:55:66;:::i;2454:148:59:-;6163:9;;;;6159:70;;671:5793:18;6159:70:59;6199:19;;;671:5793:18;6199:19:59;671:5793:18;;6199:19:59;1744:119;1805:47;;;671:5793:18;1805:47:59;671:5793:18;;;;1805:47:59;6221:120:46;6292:34;;;671:5793:18;6292:34:46;671:5793:18;;;;6292:34:46;6131:52;;;;671:5793:18;6131:52:46;;671:5793:18;6131:52:46;;;;;;671:5793:18;6131:52:46;;;:::i;:::-;;;671:5793:18;;;;;6131:52:46;;;;;;;-1:-1:-1;6131:52:46;;4650:120;-1:-1:-1;;;;;;;;;;;671:5793:18;-1:-1:-1;;;;;671:5793:18;4728:42:46;;;-1:-1:-1;4650:120:46;;;671:5793:18;;;;;;-1:-1:-1;;671:5793:18;;;;;;-1:-1:-1;;;;;671:5793:18;1422:10;:17;1418:41;;-1:-1:-1;;;;;;;;;;;671:5793:18;;;;2971:9:49;2967:62;;671:5793:18;;;-1:-1:-1;;;;;;;;;;;671:5793:18;3627:22:49;671:5793:18;;;1422:10;671:5793;;3627:22:49;671:5793:18;2967:62:49;3003:15;;;671:5793:18;3003:15:49;671:5793:18;;3003:15:49;671:5793:18;;;;;;-1:-1:-1;;671:5793:18;;;;5823:13;671:5793;;;-1:-1:-1;;;5808:44:18;;671:5793;;5808:44;;671:5793;;;;;;5808:44;;671:5793;;-1:-1:-1;;;;;671:5793:18;5808:44;;;;;;671:5793;5808:44;;;671:5793;;;;;;;;;5808:44;;671:5793;5808:44;;671:5793;5808:44;;;;;;671:5793;5808:44;;;:::i;:::-;;;671:5793;;;;;;;5808:44;;;;;-1:-1:-1;5808:44:18;;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;;;:::i;:::-;;;3361:103:50;;;:::i;:::-;1944:72:49;;:::i;:::-;3350:12:18;;3346:40;;671:5793;;-1:-1:-1;;;3452:60:18;;3423:10;671:5793;3452:60;;671:5793;3497:4;671:5793;;;;;;;;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;-1:-1:-1;671:5793:18;3452:60;;;;;;;;671:5793;-1:-1:-1;3545:13:18;671:5793;;;-1:-1:-1;;;3522:46:18;;-1:-1:-1;;;;;671:5793:18;;;;3522:46;;671:5793;;;;;;;;;;;;-1:-1:-1;3522:46:18;;;;;;;;671:5793;3522:46;;;671:5793;;3608:195;671:5793;;;;;3545:13;671:5793;;;;;;;;;;;;;;3608:195;;3497:4;671:5793;3608:195;;671:5793;3423:10;671:5793;;;;;;;;;;;;;;;;;;;;;;;;3608:195;;;;;;671:5793;3608:195;;;671:5793;1991:1:50;671:5793:18;-1:-1:-1;;;;;;;;;;;1991:1:50;671:5793:18;;;;;;3522:46;;;;;;;;;;;;;:::i;:::-;;;3452:60;;;671:5793;3452:60;671:5793;3452:60;;;;;;;:::i;:::-;;;671:5793;;;;;;-1:-1:-1;;671:5793:18;;;;;;-1:-1:-1;;;;;671:5793:18;;;;;;;;;;-1:-1:-1;;;;;671:5793:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;671:5793:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;671:5793:18;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;671:5793:18;;;;;-1:-1:-1;671:5793:18;;;;;;;;;-1:-1:-1;;671:5793:18;;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;3470:384:50:-;1991:1;-1:-1:-1;;;;;;;;;;;671:5793:18;3670:20:50;3666:88;;1991:1;-1:-1:-1;;;;;;;;;;;1991:1:50;3470:384::o;3666:88::-;3713:30;;;-1:-1:-1;3713:30:50;;-1:-1:-1;3713:30:50;2709:128:49;671:5793:18;-1:-1:-1;;;;;;;;;;;671:5793:18;;2770:61:49;;2709:128::o;2770:61::-;2805:15;;;-1:-1:-1;2805:15:49;;-1:-1:-1;2805:15:49;7082:141:45;671:5793:18;-1:-1:-1;;;;;;;;;;;671:5793:18;;;;7148:18:45;7144:73;;7082:141::o;7144:73::-;7189:17;;;-1:-1:-1;7189:17:45;;-1:-1:-1;7189:17:45;4437:582:66;;4609:8;;-1:-1:-1;671:5793:18;;5690:21:66;:17;;5815:105;;;;;;5686:301;5957:19;;;5710:1;5957:19;;5710:1;5957:19;4605:408;671:5793:18;;4857:22:66;:49;;;4605:408;4853:119;;4985:17;;:::o;4853:119::-;-1:-1:-1;;;4878:1:66;4933:24;;;-1:-1:-1;;;;;671:5793:18;;;;4933:24:66;671:5793:18;;;4933:24:66;4857:49;4883:18;;;:23;4857:49;","linkReferences":{},"immutableReferences":{"50888":[{"start":2238,"length":32},{"start":2446,"length":32}]}},"methodIdentifiers":{"UPGRADE_INTERFACE_VERSION()":"ad3cb1cc","addLiquidity(address,uint256,uint256,uint256)":"1ece366a","getAccountValue(address)":"5ae80951","getYtLPPrice()":"1fb73c8b","gov()":"12d43a51","initialize(address,address,address,address)":"f8c8765e","pause()":"8456cb59","paused()":"5c975abb","proxiableUUID()":"52d1902d","removeLiquidity(address,uint256,uint256,address)":"8fed0b2c","swapYT(address,address,uint256,uint256,address)":"925a9aef","unpause()":"3f4ba83a","upgradeToAndCall(address,bytes)":"4f1ef286","usdy()":"98d506e9","ytLP()":"e348031b","ytPoolManager()":"778d733d","ytVault()":"84a08e63"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EnforcedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExpectedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Forbidden\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientOutput\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minUsdy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minYtLP\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"getAccountValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getYtLPPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gov\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_usdy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_ytLP\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_ytPoolManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_ytVault\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_ytLPAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"swapYT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdy\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ytLP\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ytPoolManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ytVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"UUPS\\u53ef\\u5347\\u7ea7\\u5408\\u7ea6\",\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"EnforcedPause()\":[{\"details\":\"The operation failed because the contract is paused.\"}],\"ExpectedPause()\":[{\"details\":\"The operation failed because the contract is not paused.\"}],\"FailedCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"addLiquidity(address,uint256,uint256,uint256)\":{\"params\":{\"_amount\":\"\\u4ee3\\u5e01\\u6570\\u91cf\",\"_minUsdy\":\"\\u6700\\u5c0fUSDY\\u6570\\u91cf\",\"_minYtLP\":\"\\u6700\\u5c0fytLP\\u6570\\u91cf\",\"_token\":\"YT\\u4ee3\\u5e01\\u6216USDC\\u5730\\u5740\"},\"returns\":{\"_0\":\"ytLPAmount \\u83b7\\u5f97\\u7684ytLP\\u6570\\u91cf\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"getAccountValue(address)\":{\"params\":{\"_account\":\"\\u8d26\\u6237\\u5730\\u5740\"},\"returns\":{\"_0\":\"\\u8d26\\u6237\\u6301\\u6709\\u7684ytLP\\u4ef7\\u503c\\uff08USDY\\u8ba1\\u4ef7\\uff09\"}},\"getYtLPPrice()\":{\"returns\":{\"_0\":\"ytLP\\u4ef7\\u683c\\uff0818\\u4f4d\\u7cbe\\u5ea6\\uff09\"}},\"initialize(address,address,address,address)\":{\"params\":{\"_usdy\":\"USDY\\u4ee3\\u5e01\\u5730\\u5740\",\"_ytLP\":\"ytLP\\u4ee3\\u5e01\\u5730\\u5740\",\"_ytPoolManager\":\"YTPoolManager\\u5730\\u5740\",\"_ytVault\":\"YTVault\\u5730\\u5740\"}},\"pause()\":{\"details\":\"\\u6682\\u505c\\u540e\\uff0c\\u6240\\u6709\\u8d44\\u91d1\\u6d41\\u52a8\\u64cd\\u4f5c\\u5c06\\u88ab\\u7981\\u6b62\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"removeLiquidity(address,uint256,uint256,address)\":{\"params\":{\"_minOut\":\"\\u6700\\u5c0f\\u8f93\\u51fa\\u6570\\u91cf\",\"_receiver\":\"\\u63a5\\u6536\\u5730\\u5740\",\"_tokenOut\":\"\\u8f93\\u51fa\\u4ee3\\u5e01\\u5730\\u5740\",\"_ytLPAmount\":\"ytLP\\u6570\\u91cf\"},\"returns\":{\"_0\":\"amountOut \\u83b7\\u5f97\\u7684\\u4ee3\\u5e01\\u6570\\u91cf\"}},\"swapYT(address,address,uint256,uint256,address)\":{\"params\":{\"_amountIn\":\"\\u8f93\\u5165\\u6570\\u91cf\",\"_minOut\":\"\\u6700\\u5c0f\\u8f93\\u51fa\\u6570\\u91cf\",\"_receiver\":\"\\u63a5\\u6536\\u5730\\u5740\",\"_tokenIn\":\"\\u8f93\\u5165\\u4ee3\\u5e01\\u5730\\u5740\",\"_tokenOut\":\"\\u8f93\\u51fa\\u4ee3\\u5e01\\u5730\\u5740\"},\"returns\":{\"_0\":\"amountOut \\u83b7\\u5f97\\u7684\\u4ee3\\u5e01\\u6570\\u91cf\"}},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"__gap\":{\"details\":\"\\u9884\\u7559\\u5b58\\u50a8\\u7a7a\\u95f4\\uff0c\\u7528\\u4e8e\\u672a\\u6765\\u5347\\u7ea7\\u65f6\\u6dfb\\u52a0\\u65b0\\u7684\\u72b6\\u6001\\u53d8\\u91cf 50\\u4e2aslot = 50 * 32 bytes = 1600 bytes\"}},\"title\":\"YTRewardRouter\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addLiquidity(address,uint256,uint256,uint256)\":{\"notice\":\"\\u6dfb\\u52a0\\u6d41\\u52a8\\u6027\"},\"getAccountValue(address)\":{\"notice\":\"\\u83b7\\u53d6\\u8d26\\u6237\\u4ef7\\u503c\"},\"getYtLPPrice()\":{\"notice\":\"\\u83b7\\u53d6ytLP\\u4ef7\\u683c\"},\"initialize(address,address,address,address)\":{\"notice\":\"\\u521d\\u59cb\\u5316\\u5408\\u7ea6\"},\"pause()\":{\"notice\":\"\\u6682\\u505c\\u5408\\u7ea6\\uff08\\u4ec5gov\\u53ef\\u8c03\\u7528\\uff09\"},\"removeLiquidity(address,uint256,uint256,address)\":{\"notice\":\"\\u79fb\\u9664\\u6d41\\u52a8\\u6027\"},\"swapYT(address,address,uint256,uint256,address)\":{\"notice\":\"YT\\u4ee3\\u5e01\\u4e92\\u6362\"},\"unpause()\":{\"notice\":\"\\u6062\\u590d\\u5408\\u7ea6\\uff08\\u4ec5gov\\u53ef\\u8c03\\u7528\\uff09\"}},\"notice\":\"\\u7528\\u6237\\u4ea4\\u4e92\\u5165\\u53e3\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ytLp/core/YTRewardRouter.sol\":\"YTRewardRouter\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@arbitrum/=node_modules/@arbitrum/\",\":@chainlink/=node_modules/@chainlink/\",\":@ensdomains/=node_modules/@ensdomains/\",\":@eth-optimism/=node_modules/@chainlink/contracts/node_modules/@eth-optimism/\",\":@offchainlabs/=node_modules/@offchainlabs/\",\":@openzeppelin/=node_modules/@openzeppelin/\",\":@scroll-tech/=node_modules/@scroll-tech/\",\":@zksync/=node_modules/@zksync/\",\":forge-std/=lib/forge-std/src/\",\":hardhat/=node_modules/hardhat/\",\":solady/=node_modules/solady/\"],\"viaIR\":true},\"sources\":{\"contracts/interfaces/IYTPoolManager.sol\":{\"keccak256\":\"0x41073e177c27df96724e618d5bd1077cd1413ce415770818c0b7a0716677d8a7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e114a1f3bd39b837f7f9a19a06c65a3ce0ab80788912777479d5f540a157ab9\",\"dweb:/ipfs/QmXrSiZ3jjbzNtxtq5mACxrkWVAkA22MZYs4QcZ6Eqt4BC\"]},\"contracts/interfaces/IYTVault.sol\":{\"keccak256\":\"0x9f09a9cfbdca28f196c627a73c04c3af35a31f37efb622b0297a682bda2281be\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a1ca96381fea3f1d853e423fea73918d41f604d6469356d55f8c30b0231ddeb6\",\"dweb:/ipfs/QmQxEtToBseZjzN1mUP3FWF3n5GBsZRHPbXX3trvpchBvX\"]},\"contracts/ytLp/core/YTRewardRouter.sol\":{\"keccak256\":\"0x9414d9b0573d07a3940cfe50f8d58a0df4295d27341a1c39b5d8c431a8117ee9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f796397a341ad3ee28953f852d124969b8a3436fe3afcb08a78447fc5d3f3a10\",\"dweb:/ipfs/QmeWjg1E5swwDWJWwcLYaRNxC1m19pdJD8pySyAdz8ew8e\"]},\"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08\",\"dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q\"]},\"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"keccak256\":\"0x574a7451e42724f7de29e2855c392a8a5020acd695169466a18459467d719d63\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5bc189f63b639ee173dd7b6fecc39baf7113bf161776aea22b34c57fdd1872ec\",\"dweb:/ipfs/QmZAf2VtjDLRULqjJkde6LNsxAg12tUqpPqgUQQZbAjgtZ\"]},\"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9\",\"dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV\"]},\"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\":{\"keccak256\":\"0xa6bf6b7efe0e6625a9dcd30c5ddf52c4c24fe8372f37c7de9dbf5034746768d5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8c353ee3705bbf6fadb84c0fb10ef1b736e8ca3ca1867814349d1487ed207beb\",\"dweb:/ipfs/QmcugaPssrzGGE8q4YZKm2ZhnD3kCijjcgdWWg76nWt3FY\"]},\"node_modules/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\":{\"keccak256\":\"0x361126a17677994081cd9cb69c3f50cffff6e920d25cb7e428acdb1ae41d1866\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://19ae787a7dd001269cd60a394b1a5261b78925a0fc3a6f927beb2986a9aa56cf\",\"dweb:/ipfs/QmYLfXiuKmcRgTDBEDXMMjXU8t6JxsspUmjxYzqWS55oEv\"]},\"node_modules/@openzeppelin/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100\",\"dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d\"]},\"node_modules/@openzeppelin/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037\",\"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ\"]},\"node_modules/@openzeppelin/contracts/interfaces/IERC1967.sol\":{\"keccak256\":\"0xbf2aefe54b76d7f7bcd4f6da1080b7b1662611937d870b880db584d09cea56b5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5e7e2f12e0feec75296e57f51f82fdaa8bd1551f4b8cc6560442c0bf60f818c\",\"dweb:/ipfs/QmcW9wDMaQ8RbQibMarfp17a3bABzY5KraWe2YDwuUrUoz\"]},\"node_modules/@openzeppelin/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d\",\"dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF\"]},\"node_modules/@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"keccak256\":\"0x82f757819bf2429a0d4db141b99a4bbe5039e4ef86dfb94e2e6d40577ed5b28b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://37c30ed931e19fb71fdb806bb504cfdb9913b7127545001b64d4487783374422\",\"dweb:/ipfs/QmUBHpv4hm3ZmwJ4GH8BeVzK4mv41Q6vBbWXxn8HExPXza\"]},\"node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"keccak256\":\"0xa1ad192cd45317c788618bef5cb1fb3ca4ce8b230f6433ac68cc1d850fb81618\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b43447bb85a53679d269a403c693b9d88d6c74177dfb35eddca63abaf7cf110a\",\"dweb:/ipfs/QmXSDmpd4bNZj1PDgegr6C4w1jDaWHXCconC3rYiw9TSkQ\"]},\"node_modules/@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"keccak256\":\"0x20462ddb2665e9521372c76b001d0ce196e59dbbd989de9af5576cad0bd5628b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f417fd12aeec8fbfaceaa30e3a08a0724c0bc39de363e2acf6773c897abbaf6d\",\"dweb:/ipfs/QmU4Hko6sApdweVM92CsiuLKkCk8HfyBeutF89PCTz5Tye\"]},\"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x982c5cb790ab941d1e04f807120a71709d4c313ba0bfc16006447ffbd27fbbd5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8150ceb4ac947e8a442b2a9c017e01e880b2be2dd958f1fa9bc405f4c5a86508\",\"dweb:/ipfs/QmbcBmFX66AY6Kbhnd5gx7zpkgqnUafo43XnmayAM7zVdB\"]},\"node_modules/@openzeppelin/contracts/utils/Address.sol\":{\"keccak256\":\"0x6d0ae6e206645341fd122d278c2cb643dea260c190531f2f3f6a0426e77b00c0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://032d1201d839435be2c85b72e33206b3ea980c569d6ebf7fa57d811ab580a82f\",\"dweb:/ipfs/QmeqQjAtMvdZT2tG7zm39itcRJkuwu8AEReK6WRnLJ18DD\"]},\"node_modules/@openzeppelin/contracts/utils/Errors.sol\":{\"keccak256\":\"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf\",\"dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB\"]},\"node_modules/@openzeppelin/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.30+commit.73712a01"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"type":"error","name":"AddressEmptyCode"},{"inputs":[],"type":"error","name":"AlreadyInitialized"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"type":"error","name":"ERC1967InvalidImplementation"},{"inputs":[],"type":"error","name":"ERC1967NonPayable"},{"inputs":[],"type":"error","name":"EnforcedPause"},{"inputs":[],"type":"error","name":"ExpectedPause"},{"inputs":[],"type":"error","name":"FailedCall"},{"inputs":[],"type":"error","name":"Forbidden"},{"inputs":[],"type":"error","name":"InsufficientOutput"},{"inputs":[],"type":"error","name":"InvalidAddress"},{"inputs":[],"type":"error","name":"InvalidAmount"},{"inputs":[],"type":"error","name":"InvalidInitialization"},{"inputs":[],"type":"error","name":"NotInitializing"},{"inputs":[],"type":"error","name":"ReentrancyGuardReentrantCall"},{"inputs":[],"type":"error","name":"UUPSUnauthorizedCallContext"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"type":"error","name":"UUPSUnsupportedProxiableUUID"},{"inputs":[{"internalType":"uint64","name":"version","type":"uint64","indexed":false}],"type":"event","name":"Initialized","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":false}],"type":"event","name":"Paused","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":true},{"internalType":"address","name":"tokenIn","type":"address","indexed":false},{"internalType":"address","name":"tokenOut","type":"address","indexed":false},{"internalType":"uint256","name":"amountIn","type":"uint256","indexed":false},{"internalType":"uint256","name":"amountOut","type":"uint256","indexed":false}],"type":"event","name":"Swap","anonymous":false},{"inputs":[{"internalType":"address","name":"account","type":"address","indexed":false}],"type":"event","name":"Unpaused","anonymous":false},{"inputs":[{"internalType":"address","name":"implementation","type":"address","indexed":true}],"type":"event","name":"Upgraded","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minUsdy","type":"uint256"},{"internalType":"uint256","name":"_minYtLP","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"addLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"stateMutability":"view","type":"function","name":"getAccountValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getYtLPPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_usdy","type":"address"},{"internalType":"address","name":"_ytLP","type":"address"},{"internalType":"address","name":"_ytPoolManager","type":"address"},{"internalType":"address","name":"_ytVault","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"initialize"},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"pause"},{"inputs":[],"stateMutability":"view","type":"function","name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}]},{"inputs":[{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_ytLPAmount","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"swapYT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"unpause"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"payable","type":"function","name":"upgradeToAndCall"},{"inputs":[],"stateMutability":"view","type":"function","name":"usdy","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"ytLP","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"ytPoolManager","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"ytVault","outputs":[{"internalType":"address","name":"","type":"address"}]}],"devdoc":{"kind":"dev","methods":{"addLiquidity(address,uint256,uint256,uint256)":{"params":{"_amount":"代币数量","_minUsdy":"最小USDY数量","_minYtLP":"最小ytLP数量","_token":"YT代币或USDC地址"},"returns":{"_0":"ytLPAmount 获得的ytLP数量"}},"constructor":{"custom:oz-upgrades-unsafe-allow":"constructor"},"getAccountValue(address)":{"params":{"_account":"账户地址"},"returns":{"_0":"账户持有的ytLP价值(USDY计价)"}},"getYtLPPrice()":{"returns":{"_0":"ytLP价格(18位精度)"}},"initialize(address,address,address,address)":{"params":{"_usdy":"USDY代币地址","_ytLP":"ytLP代币地址","_ytPoolManager":"YTPoolManager地址","_ytVault":"YTVault地址"}},"pause()":{"details":"暂停后,所有资金流动操作将被禁止"},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"proxiableUUID()":{"details":"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."},"removeLiquidity(address,uint256,uint256,address)":{"params":{"_minOut":"最小输出数量","_receiver":"接收地址","_tokenOut":"输出代币地址","_ytLPAmount":"ytLP数量"},"returns":{"_0":"amountOut 获得的代币数量"}},"swapYT(address,address,uint256,uint256,address)":{"params":{"_amountIn":"输入数量","_minOut":"最小输出数量","_receiver":"接收地址","_tokenIn":"输入代币地址","_tokenOut":"输出代币地址"},"returns":{"_0":"amountOut 获得的代币数量"}},"upgradeToAndCall(address,bytes)":{"custom:oz-upgrades-unsafe-allow-reachable":"delegatecall","details":"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}},"version":1},"userdoc":{"kind":"user","methods":{"addLiquidity(address,uint256,uint256,uint256)":{"notice":"添加流动性"},"getAccountValue(address)":{"notice":"获取账户价值"},"getYtLPPrice()":{"notice":"获取ytLP价格"},"initialize(address,address,address,address)":{"notice":"初始化合约"},"pause()":{"notice":"暂停合约(仅gov可调用)"},"removeLiquidity(address,uint256,uint256,address)":{"notice":"移除流动性"},"swapYT(address,address,uint256,uint256,address)":{"notice":"YT代币互换"},"unpause()":{"notice":"恢复合约(仅gov可调用)"}},"version":1}},"settings":{"remappings":["@arbitrum/=node_modules/@arbitrum/","@chainlink/=node_modules/@chainlink/","@ensdomains/=node_modules/@ensdomains/","@eth-optimism/=node_modules/@chainlink/contracts/node_modules/@eth-optimism/","@offchainlabs/=node_modules/@offchainlabs/","@openzeppelin/=node_modules/@openzeppelin/","@scroll-tech/=node_modules/@scroll-tech/","@zksync/=node_modules/@zksync/","forge-std/=lib/forge-std/src/","hardhat/=node_modules/hardhat/","solady/=node_modules/solady/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"contracts/ytLp/core/YTRewardRouter.sol":"YTRewardRouter"},"evmVersion":"prague","libraries":{},"viaIR":true},"sources":{"contracts/interfaces/IYTPoolManager.sol":{"keccak256":"0x41073e177c27df96724e618d5bd1077cd1413ce415770818c0b7a0716677d8a7","urls":["bzz-raw://1e114a1f3bd39b837f7f9a19a06c65a3ce0ab80788912777479d5f540a157ab9","dweb:/ipfs/QmXrSiZ3jjbzNtxtq5mACxrkWVAkA22MZYs4QcZ6Eqt4BC"],"license":"MIT"},"contracts/interfaces/IYTVault.sol":{"keccak256":"0x9f09a9cfbdca28f196c627a73c04c3af35a31f37efb622b0297a682bda2281be","urls":["bzz-raw://a1ca96381fea3f1d853e423fea73918d41f604d6469356d55f8c30b0231ddeb6","dweb:/ipfs/QmQxEtToBseZjzN1mUP3FWF3n5GBsZRHPbXX3trvpchBvX"],"license":"MIT"},"contracts/ytLp/core/YTRewardRouter.sol":{"keccak256":"0x9414d9b0573d07a3940cfe50f8d58a0df4295d27341a1c39b5d8c431a8117ee9","urls":["bzz-raw://f796397a341ad3ee28953f852d124969b8a3436fe3afcb08a78447fc5d3f3a10","dweb:/ipfs/QmeWjg1E5swwDWJWwcLYaRNxC1m19pdJD8pySyAdz8ew8e"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"keccak256":"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05","urls":["bzz-raw://ab7b6d5b9e2b88176312967fe0f0e78f3d9a1422fa5e4b64e2440c35869b5d08","dweb:/ipfs/QmXKYWWyzcLg1B2k7Sb1qkEXgLCYfXecR9wYW5obRzWP1Q"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol":{"keccak256":"0x574a7451e42724f7de29e2855c392a8a5020acd695169466a18459467d719d63","urls":["bzz-raw://5bc189f63b639ee173dd7b6fecc39baf7113bf161776aea22b34c57fdd1872ec","dweb:/ipfs/QmZAf2VtjDLRULqjJkde6LNsxAg12tUqpPqgUQQZbAjgtZ"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol":{"keccak256":"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397","urls":["bzz-raw://08e39f23d5b4692f9a40803e53a8156b72b4c1f9902a88cd65ba964db103dab9","dweb:/ipfs/QmPKn6EYDgpga7KtpkA8wV2yJCYGMtc9K4LkJfhKX2RVSV"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol":{"keccak256":"0xa6bf6b7efe0e6625a9dcd30c5ddf52c4c24fe8372f37c7de9dbf5034746768d5","urls":["bzz-raw://8c353ee3705bbf6fadb84c0fb10ef1b736e8ca3ca1867814349d1487ed207beb","dweb:/ipfs/QmcugaPssrzGGE8q4YZKm2ZhnD3kCijjcgdWWg76nWt3FY"],"license":"MIT"},"node_modules/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol":{"keccak256":"0x361126a17677994081cd9cb69c3f50cffff6e920d25cb7e428acdb1ae41d1866","urls":["bzz-raw://19ae787a7dd001269cd60a394b1a5261b78925a0fc3a6f927beb2986a9aa56cf","dweb:/ipfs/QmYLfXiuKmcRgTDBEDXMMjXU8t6JxsspUmjxYzqWS55oEv"],"license":"MIT"},"node_modules/@openzeppelin/contracts/interfaces/IERC1363.sol":{"keccak256":"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d","urls":["bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100","dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d"],"license":"MIT"},"node_modules/@openzeppelin/contracts/interfaces/IERC165.sol":{"keccak256":"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc","urls":["bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037","dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"],"license":"MIT"},"node_modules/@openzeppelin/contracts/interfaces/IERC1967.sol":{"keccak256":"0xbf2aefe54b76d7f7bcd4f6da1080b7b1662611937d870b880db584d09cea56b5","urls":["bzz-raw://f5e7e2f12e0feec75296e57f51f82fdaa8bd1551f4b8cc6560442c0bf60f818c","dweb:/ipfs/QmcW9wDMaQ8RbQibMarfp17a3bABzY5KraWe2YDwuUrUoz"],"license":"MIT"},"node_modules/@openzeppelin/contracts/interfaces/IERC20.sol":{"keccak256":"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44","urls":["bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d","dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF"],"license":"MIT"},"node_modules/@openzeppelin/contracts/interfaces/draft-IERC1822.sol":{"keccak256":"0x82f757819bf2429a0d4db141b99a4bbe5039e4ef86dfb94e2e6d40577ed5b28b","urls":["bzz-raw://37c30ed931e19fb71fdb806bb504cfdb9913b7127545001b64d4487783374422","dweb:/ipfs/QmUBHpv4hm3ZmwJ4GH8BeVzK4mv41Q6vBbWXxn8HExPXza"],"license":"MIT"},"node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol":{"keccak256":"0xa1ad192cd45317c788618bef5cb1fb3ca4ce8b230f6433ac68cc1d850fb81618","urls":["bzz-raw://b43447bb85a53679d269a403c693b9d88d6c74177dfb35eddca63abaf7cf110a","dweb:/ipfs/QmXSDmpd4bNZj1PDgegr6C4w1jDaWHXCconC3rYiw9TSkQ"],"license":"MIT"},"node_modules/@openzeppelin/contracts/proxy/beacon/IBeacon.sol":{"keccak256":"0x20462ddb2665e9521372c76b001d0ce196e59dbbd989de9af5576cad0bd5628b","urls":["bzz-raw://f417fd12aeec8fbfaceaa30e3a08a0724c0bc39de363e2acf6773c897abbaf6d","dweb:/ipfs/QmU4Hko6sApdweVM92CsiuLKkCk8HfyBeutF89PCTz5Tye"],"license":"MIT"},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2","urls":["bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303","dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV"],"license":"MIT"},"node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x982c5cb790ab941d1e04f807120a71709d4c313ba0bfc16006447ffbd27fbbd5","urls":["bzz-raw://8150ceb4ac947e8a442b2a9c017e01e880b2be2dd958f1fa9bc405f4c5a86508","dweb:/ipfs/QmbcBmFX66AY6Kbhnd5gx7zpkgqnUafo43XnmayAM7zVdB"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/Address.sol":{"keccak256":"0x6d0ae6e206645341fd122d278c2cb643dea260c190531f2f3f6a0426e77b00c0","urls":["bzz-raw://032d1201d839435be2c85b72e33206b3ea980c569d6ebf7fa57d811ab580a82f","dweb:/ipfs/QmeqQjAtMvdZT2tG7zm39itcRJkuwu8AEReK6WRnLJ18DD"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/Errors.sol":{"keccak256":"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123","urls":["bzz-raw://ba1d02f4847670a1b83dec9f7d37f0b0418d6043447b69f3a29a5f9efc547fcf","dweb:/ipfs/QmQ7iH2keLNUKgq2xSWcRmuBE5eZ3F5whYAkAGzCNNoEWB"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"],"license":"MIT"}},"version":1},"id":18} |