1 line
68 KiB
JSON
1 line
68 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":"SafeERC20FailedOperation","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"type":"error","name":"UUPSUnauthorizedCallContext","inputs":[]},{"type":"error","name":"UUPSUnsupportedProxiableUUID","inputs":[{"name":"slot","type":"bytes32","internalType":"bytes32"}]}],"bytecode":{"object":"0x60a080604052346100c257306080525f5160206110ef5f395f51905f525460ff8160401c166100b3576002600160401b03196001600160401b03821601610060575b60405161102890816100c7823960805181818161086701526109370152f35b6001600160401b0319166001600160401b039081175f5160206110ef5f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80610041565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816312d43a5114610d3d575080631ece366a14610c065780631fb73c8b14610b7e5780633f4ba83a14610af75780634f1ef286146108bb57806352d1902d146108555780635ae80951146107245780635c975abb146106f6578063778d733d146106ce5780638456cb591461064557806384a08e631461061d5780638fed0b2c14610537578063925a9aef146103b757806398d506e91461038f578063ad3cb1cc14610331578063e348031b146103095763f8c8765e146100d7575f80fd5b34610305576080366003190112610305576100f0610d5f565b6100f8610d8b565b6044356001600160a01b0381169081900361030557610115610d75565b5f516020610fd35f395f51905f52549360ff8560401c16159467ffffffffffffffff8116801590816102fd575b60011490816102f3575b1590816102ea575b506102db5767ffffffffffffffff1981166001175f516020610fd35f395f51905f5255856102af575b506001600160a01b03169283156102a0576001600160a01b03169081156102a05782156102a0576001600160a01b03169283156102a0576101bc610ee9565b6101c4610ee9565b60015f516020610fb35f395f51905f52556101dd610ee9565b6101e5610ee9565b336001600160601b0360a01b5f5416175f556001600160601b0360a01b60015416176001556001600160601b0360a01b60025416176002556001600160601b0360a01b60035416176003556001600160601b0360a01b600454161760045561024957005b68ff0000000000000000195f516020610fd35f395f51905f5254165f516020610fd35f395f51905f52557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b63e6c4247b60e01b5f5260045ffd5b68ffffffffffffffffff191668010000000000000001175f516020610fd35f395f51905f52555f61017d565b63f92ee8a960e01b5f5260045ffd5b9050155f610154565b303b15915061014c565b879150610142565b5f80fd5b34610305575f366003190112610305576002546040516001600160a01b039091168152602090f35b34610305575f3660031901126103055760408051906103508183610da1565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b34610305575f366003190112610305576001546040516001600160a01b039091168152602090f35b346103055760a0366003190112610305576103d0610d5f565b6103d8610d8b565b6084356001600160a01b03811692919060443590849003610305576103fb610df3565b610403610e2b565b8015610528576004545f936001600160a01b0390811693602092909161042d918591163387610e52565b60048054604051634998b10960e11b81529182018690526001600160a01b0392831660248301819052604483019890985290958692606492849291165af192831561051d575f936104e9575b5060643583106104da576020936040519283528483015260408201528160608201527fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e4606260803392a260015f516020610fb35f395f51905f5255604051908152f35b63bb2875c360e01b5f5260045ffd5b9092506020813d602011610515575b8161050560209383610da1565b8101031261030557519184610479565b3d91506104f8565b6040513d5f823e3d90fd5b63162908e360e11b5f5260045ffd5b3461030557608036600319011261030557610550610d5f565b6024359061055c610d75565b91610565610df3565b61056d610e2b565b8015610528576003546040516371d597ad60e01b81523360048201526001600160a01b03938416602482015260448082019390935291356064830152928216608482015291602091839160a49183915f91165af1801561051d575f906105ea575b60209060015f516020610fb35f395f51905f5255604051908152f35b506020813d602011610615575b8161060460209383610da1565b8101031261030557602090516105ce565b3d91506105f7565b34610305575f366003190112610305576004546040516001600160a01b039091168152602090f35b34610305575f366003190112610305575f546001600160a01b031633036106bf5761066e610e2b565b600160ff195f516020610f935f395f51905f525416175f516020610f935f395f51905f52557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b631dd2188d60e31b5f5260045ffd5b34610305575f366003190112610305576003546040516001600160a01b039091168152602090f35b34610305575f36600319011261030557602060ff5f516020610f935f395f51905f5254166040519015158152f35b346103055760203660031901126103055761073d610d5f565b6002546040516370a0823160e01b81526001600160a01b0392831660048201529160209183916024918391165afa801561051d575f90610822575b60035460405163e245b5af60e01b8152600160048201529250602090839060249082906001600160a01b03165afa91821561051d575f926107ee575b508181029181830414901517156107da57602090670de0b6b3a764000060405191048152f35b634e487b7160e01b5f52601160045260245ffd5b9091506020813d60201161081a575b8161080a60209383610da1565b81010312610305575190826107b4565b3d91506107fd565b506020813d60201161084d575b8161083c60209383610da1565b810103126103055760249051610778565b3d915061082f565b34610305575f366003190112610305577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036108ac5760206040515f516020610f735f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b6040366003190112610305576108cf610d5f565b6024359067ffffffffffffffff82116103055736602383011215610305578160040135906108fc82610dd7565b9161090a6040519384610da1565b8083526020830193366024838301011161030557815f926024602093018737840101526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610ad5575b506108ac575f546001600160a01b031633036106bf576040516352d1902d60e01b81526001600160a01b0382169390602081600481885afa5f9181610aa1575b506109ba5784634c9c8ce360e01b5f5260045260245ffd5b805f516020610f735f395f51905f52869203610a8f5750823b15610a7d575f516020610f735f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2825115610a64575f8091610a5a945190845af43d15610a5c573d91610a3e83610dd7565b92610a4c6040519485610da1565b83523d5f602085013e610f14565b005b606091610f14565b50505034610a6e57005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610acd575b81610abd60209383610da1565b81010312610305575190866109a2565b3d9150610ab0565b5f516020610f735f395f51905f52546001600160a01b03161415905084610962565b34610305575f366003190112610305575f546001600160a01b031633036106bf575f516020610f935f395f51905f525460ff811615610b6f5760ff19165f516020610f935f395f51905f52557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b638dfc202b60e01b5f5260045ffd5b34610305575f3660031901126103055760035460405163e245b5af60e01b81526001600482015290602090829060249082906001600160a01b03165afa801561051d575f90610bd3575b602090604051908152f35b506020813d602011610bfe575b81610bed60209383610da1565b810103126103055760209051610bc8565b3d9150610be0565b3461030557608036600319011261030557610c1f610d5f565b60243590610c2b610df3565b610c33610e2b565b8115610528576001600160a01b031690610c4f81303385610e52565b60035460405163095ea7b360e01b81526001600160a01b039091166004820152602481018290526020816044815f875af1801561051d57610d00575b5060209060c460018060a01b0360035416935f60405195869485936317eb2a1560e01b855230600486015233602486015260448501526064840152604435608484015260643560a48401525af1801561051d575f906105ea5760209060015f516020610fb35f395f51905f5255604051908152f35b6020813d602011610d35575b81610d1960209383610da1565b8101031261030557519081151582036103055790506020610c8b565b3d9150610d0c565b34610305575f366003190112610305575f546001600160a01b03168152602090f35b600435906001600160a01b038216820361030557565b606435906001600160a01b038216820361030557565b602435906001600160a01b038216820361030557565b90601f8019910116810190811067ffffffffffffffff821117610dc357604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610dc357601f01601f191660200190565b60025f516020610fb35f395f51905f525414610e1c5760025f516020610fb35f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b60ff5f516020610f935f395f51905f525416610e4357565b63d93c066560e01b5f5260045ffd5b6040516323b872dd60e01b60208083019182526001600160a01b039485166024840152949093166044820152606480820195909552938452925f9190610e99608482610da1565b519082855af11561051d575f513d610ee057506001600160a01b0381163b155b610ec05750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610eb9565b60ff5f516020610fd35f395f51905f525460401c1615610f0557565b631afcd79f60e31b5f5260045ffd5b90610f385750805115610f2957602081519101fd5b63d6bda27560e01b5f5260045ffd5b81511580610f69575b610f49575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b15610f4156fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a26469706673582212202c9e62c803b621e4e143c97f294ce6f290483c0575bd6af2eaeba0d47ca2aa9c64736f6c634300081e0033f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00","sourceMap":"671:5801:18:-:0;;;;;;;1171:4:47;1163:13;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;;;;7894:76:46;;-1:-1:-1;;;;;;;;;;;671:5801:18;;7983:34:46;7979:146;;-1:-1:-1;671:5801:18;;;;;;;;1163:13:47;671:5801:18;;;;;;;;;;;7979:146:46;-1:-1:-1;;;;;;671:5801:18;-1:-1:-1;;;;;671:5801:18;;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;8085:29:46;;671:5801:18;;8085:29:46;7979:146;;;;7894:76;7936:23;;;-1:-1:-1;7936:23:46;;-1:-1:-1;7936:23:46;671:5801:18;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080806040526004361015610012575f80fd5b5f3560e01c90816312d43a5114610d3d575080631ece366a14610c065780631fb73c8b14610b7e5780633f4ba83a14610af75780634f1ef286146108bb57806352d1902d146108555780635ae80951146107245780635c975abb146106f6578063778d733d146106ce5780638456cb591461064557806384a08e631461061d5780638fed0b2c14610537578063925a9aef146103b757806398d506e91461038f578063ad3cb1cc14610331578063e348031b146103095763f8c8765e146100d7575f80fd5b34610305576080366003190112610305576100f0610d5f565b6100f8610d8b565b6044356001600160a01b0381169081900361030557610115610d75565b5f516020610fd35f395f51905f52549360ff8560401c16159467ffffffffffffffff8116801590816102fd575b60011490816102f3575b1590816102ea575b506102db5767ffffffffffffffff1981166001175f516020610fd35f395f51905f5255856102af575b506001600160a01b03169283156102a0576001600160a01b03169081156102a05782156102a0576001600160a01b03169283156102a0576101bc610ee9565b6101c4610ee9565b60015f516020610fb35f395f51905f52556101dd610ee9565b6101e5610ee9565b336001600160601b0360a01b5f5416175f556001600160601b0360a01b60015416176001556001600160601b0360a01b60025416176002556001600160601b0360a01b60035416176003556001600160601b0360a01b600454161760045561024957005b68ff0000000000000000195f516020610fd35f395f51905f5254165f516020610fd35f395f51905f52557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b63e6c4247b60e01b5f5260045ffd5b68ffffffffffffffffff191668010000000000000001175f516020610fd35f395f51905f52555f61017d565b63f92ee8a960e01b5f5260045ffd5b9050155f610154565b303b15915061014c565b879150610142565b5f80fd5b34610305575f366003190112610305576002546040516001600160a01b039091168152602090f35b34610305575f3660031901126103055760408051906103508183610da1565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b34610305575f366003190112610305576001546040516001600160a01b039091168152602090f35b346103055760a0366003190112610305576103d0610d5f565b6103d8610d8b565b6084356001600160a01b03811692919060443590849003610305576103fb610df3565b610403610e2b565b8015610528576004545f936001600160a01b0390811693602092909161042d918591163387610e52565b60048054604051634998b10960e11b81529182018690526001600160a01b0392831660248301819052604483019890985290958692606492849291165af192831561051d575f936104e9575b5060643583106104da576020936040519283528483015260408201528160608201527fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e4606260803392a260015f516020610fb35f395f51905f5255604051908152f35b63bb2875c360e01b5f5260045ffd5b9092506020813d602011610515575b8161050560209383610da1565b8101031261030557519184610479565b3d91506104f8565b6040513d5f823e3d90fd5b63162908e360e11b5f5260045ffd5b3461030557608036600319011261030557610550610d5f565b6024359061055c610d75565b91610565610df3565b61056d610e2b565b8015610528576003546040516371d597ad60e01b81523360048201526001600160a01b03938416602482015260448082019390935291356064830152928216608482015291602091839160a49183915f91165af1801561051d575f906105ea575b60209060015f516020610fb35f395f51905f5255604051908152f35b506020813d602011610615575b8161060460209383610da1565b8101031261030557602090516105ce565b3d91506105f7565b34610305575f366003190112610305576004546040516001600160a01b039091168152602090f35b34610305575f366003190112610305575f546001600160a01b031633036106bf5761066e610e2b565b600160ff195f516020610f935f395f51905f525416175f516020610f935f395f51905f52557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b631dd2188d60e31b5f5260045ffd5b34610305575f366003190112610305576003546040516001600160a01b039091168152602090f35b34610305575f36600319011261030557602060ff5f516020610f935f395f51905f5254166040519015158152f35b346103055760203660031901126103055761073d610d5f565b6002546040516370a0823160e01b81526001600160a01b0392831660048201529160209183916024918391165afa801561051d575f90610822575b60035460405163e245b5af60e01b8152600160048201529250602090839060249082906001600160a01b03165afa91821561051d575f926107ee575b508181029181830414901517156107da57602090670de0b6b3a764000060405191048152f35b634e487b7160e01b5f52601160045260245ffd5b9091506020813d60201161081a575b8161080a60209383610da1565b81010312610305575190826107b4565b3d91506107fd565b506020813d60201161084d575b8161083c60209383610da1565b810103126103055760249051610778565b3d915061082f565b34610305575f366003190112610305577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036108ac5760206040515f516020610f735f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b6040366003190112610305576108cf610d5f565b6024359067ffffffffffffffff82116103055736602383011215610305578160040135906108fc82610dd7565b9161090a6040519384610da1565b8083526020830193366024838301011161030557815f926024602093018737840101526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610ad5575b506108ac575f546001600160a01b031633036106bf576040516352d1902d60e01b81526001600160a01b0382169390602081600481885afa5f9181610aa1575b506109ba5784634c9c8ce360e01b5f5260045260245ffd5b805f516020610f735f395f51905f52869203610a8f5750823b15610a7d575f516020610f735f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2825115610a64575f8091610a5a945190845af43d15610a5c573d91610a3e83610dd7565b92610a4c6040519485610da1565b83523d5f602085013e610f14565b005b606091610f14565b50505034610a6e57005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610acd575b81610abd60209383610da1565b81010312610305575190866109a2565b3d9150610ab0565b5f516020610f735f395f51905f52546001600160a01b03161415905084610962565b34610305575f366003190112610305575f546001600160a01b031633036106bf575f516020610f935f395f51905f525460ff811615610b6f5760ff19165f516020610f935f395f51905f52557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b638dfc202b60e01b5f5260045ffd5b34610305575f3660031901126103055760035460405163e245b5af60e01b81526001600482015290602090829060249082906001600160a01b03165afa801561051d575f90610bd3575b602090604051908152f35b506020813d602011610bfe575b81610bed60209383610da1565b810103126103055760209051610bc8565b3d9150610be0565b3461030557608036600319011261030557610c1f610d5f565b60243590610c2b610df3565b610c33610e2b565b8115610528576001600160a01b031690610c4f81303385610e52565b60035460405163095ea7b360e01b81526001600160a01b039091166004820152602481018290526020816044815f875af1801561051d57610d00575b5060209060c460018060a01b0360035416935f60405195869485936317eb2a1560e01b855230600486015233602486015260448501526064840152604435608484015260643560a48401525af1801561051d575f906105ea5760209060015f516020610fb35f395f51905f5255604051908152f35b6020813d602011610d35575b81610d1960209383610da1565b8101031261030557519081151582036103055790506020610c8b565b3d9150610d0c565b34610305575f366003190112610305575f546001600160a01b03168152602090f35b600435906001600160a01b038216820361030557565b606435906001600160a01b038216820361030557565b602435906001600160a01b038216820361030557565b90601f8019910116810190811067ffffffffffffffff821117610dc357604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610dc357601f01601f191660200190565b60025f516020610fb35f395f51905f525414610e1c5760025f516020610fb35f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b60ff5f516020610f935f395f51905f525416610e4357565b63d93c066560e01b5f5260045ffd5b6040516323b872dd60e01b60208083019182526001600160a01b039485166024840152949093166044820152606480820195909552938452925f9190610e99608482610da1565b519082855af11561051d575f513d610ee057506001600160a01b0381163b155b610ec05750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610eb9565b60ff5f516020610fd35f395f51905f525460401c1615610f0557565b631afcd79f60e31b5f5260045ffd5b90610f385750805115610f2957602081519101fd5b63d6bda27560e01b5f5260045ffd5b81511580610f69575b610f49575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b15610f4156fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a26469706673582212202c9e62c803b621e4e143c97f294ce6f290483c0575bd6af2eaeba0d47ca2aa9c64736f6c634300081e0033","sourceMap":"671:5801:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;;;:::i;:::-;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;671:5801:18;;;;;;;4301:16:46;671:5801:18;;;;4724:16:46;;:34;;;;671:5801:18;4803:1:46;4788:16;:50;;;;671:5801:18;4853:13:46;:30;;;;671:5801:18;4849:91:46;;;-1:-1:-1;;671:5801:18;;4803:1:46;671:5801:18;-1:-1:-1;;;;;;;;;;;671:5801:18;;4977:67:46;;671:5801:18;-1:-1:-1;;;;;;671:5801:18;;1859:19;;1855:48;;-1:-1:-1;;;;;671:5801:18;;1917:19;;1913:48;;1975:28;;1971:57;;-1:-1:-1;;;;;671:5801:18;;2042:22;;2038:51;;6891:76:46;;:::i;:::-;;;:::i;:::-;4803:1;-1:-1:-1;;;;;;;;;;;1991:1:51;6891:76:46;;:::i;:::-;;;:::i;:::-;2218:10:18;-1:-1:-1;;;;;671:5801:18;;;;;;;;-1:-1:-1;;;;;671:5801:18;;4803:1:46;671:5801:18;;;4803:1:46;671:5801:18;-1:-1:-1;;;;;671:5801:18;;2261:12;671:5801;;;2261:12;671:5801;-1:-1:-1;;;;;671:5801:18;;2283:30;671:5801;;;2283:30;671:5801;-1:-1:-1;;;;;671:5801:18;;;;;;;;5064:101:46;;671:5801:18;5064:101:46;671:5801:18;;-1:-1:-1;;;;;;;;;;;671:5801:18;;-1:-1:-1;;;;;;;;;;;671:5801:18;5140:14:46;671:5801:18;;;4803:1:46;671:5801:18;;5140:14:46;671:5801:18;2038:51;1887:16;;;671:5801;2073:16;671:5801;;2073:16;4977:67:46;-1:-1:-1;;671:5801:18;;;-1:-1:-1;;;;;;;;;;;671:5801:18;4977:67:46;;;4849:91;4906:23;;;671:5801:18;4906:23:46;671:5801:18;;4906:23:46;4853:30;4870:13;;;4853:30;;;4788:50;4816:4;4808:25;:30;;-1:-1:-1;4788:50:46;;4724:34;;;-1:-1:-1;4724:34:46;;671:5801:18;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;1133:19;671:5801;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;671:5801:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;;;:::i;:::-;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;3361:103:51;;:::i;:::-;1944:72:50;;:::i;:::-;5190:14:18;;5186:42;;671:5801;;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;5346:9;;671:5801;;;5265:10;671:5801;5346:9;:::i;:::-;671:5801;;;;;-1:-1:-1;;;5395:54:18;;;;;671:5801;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;;;;;;;;;;;;;5395:54;;;;;;;671:5801;5395:54;;;671:5801;;;;5472:19;;5468:52;;671:5801;;;;;;;;;;;;;;;;;;;;5544:56;671:5801;5265:10;5544:56;;671:5801;-1:-1:-1;;;;;;;;;;;1991:1:51;671:5801:18;;;;;;5468:52;5500:20;;;671:5801;5500:20;671:5801;;5500:20;5395:54;;;;671:5801;5395:54;;671:5801;5395:54;;;;;;671:5801;5395:54;;;:::i;:::-;;;671:5801;;;;;5395:54;;;;;;;-1:-1:-1;5395:54:18;;;671:5801;;;;;;;;;5186:42;3371:15;;;671:5801;5213:15;671:5801;;5213:15;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;;;;;;:::i;:::-;3361:103:51;;;:::i;:::-;1944:72:50;;:::i;:::-;4319:16:18;;4315:44;;4460:13;671:5801;;;-1:-1:-1;;;4445:178:18;;4396:10;671:5801;4445:178;;671:5801;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4445:178;;671:5801;;;;;4445:178;;;;;;671:5801;4445:178;;;671:5801;;1991:1:51;671:5801:18;-1:-1:-1;;;;;;;;;;;1991:1:51;671:5801:18;;;;;;4445:178;;671:5801;4445:178;;671:5801;4445:178;;;;;;671:5801;4445:178;;;:::i;:::-;;;671:5801;;;;;;;4445:178;;;;;-1:-1:-1;4445:178:18;;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;;;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;-1:-1:-1;;;;;671:5801:18;1422:10;:17;1418:41;;1944:72:50;;:::i;:::-;3300:4;671:5801:18;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;-1:-1:-1;;;;;;;;;;;671:5801:18;3319:20:50;671:5801:18;;;1422:10;671:5801;;3319:20:50;671:5801:18;1418:41;1448:11;;;671:5801;1448:11;671:5801;;1448:11;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;1158:28;671:5801;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;;;;;;;;;;;;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;6134:4;671:5801;;;-1:-1:-1;;;6127:32:18;;-1:-1:-1;;;;;671:5801:18;;;;6127:32;;671:5801;;;;;;6127:32;;671:5801;;;6127:32;;;;;;671:5801;6127:32;;;671:5801;6204:13;671:5801;;;-1:-1:-1;;;6189:44:18;;671:5801;;6189:44;;671:5801;;-1:-1:-1;671:5801:18;;;;6127:32;;671:5801;;-1:-1:-1;;;;;671:5801:18;6189:44;;;;;;;671:5801;6189:44;;;671:5801;;;;;;;;;;;;;;;;;;6277:8;671:5801;;;;;;;;;;;;;;;;6127:32;671:5801;;6189:44;;;;671:5801;6189:44;;671:5801;6189:44;;;;;;671:5801;6189:44;;;:::i;:::-;;;671:5801;;;;;6189:44;;;;;;;-1:-1:-1;6189:44:18;;6127:32;;671:5801;6127:32;;671:5801;6127:32;;;;;;671:5801;6127:32;;;:::i;:::-;;;671:5801;;;;6127:32;671:5801;;6127:32;;;;;-1:-1:-1;6127:32:18;;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;5090:6:47;-1:-1:-1;;;;;671:5801:18;5081:4:47;5073:23;5069:145;;671:5801:18;;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;5069:145:47;4844:29;;;671:5801:18;5174:29:47;671:5801:18;;5174:29:47;671:5801:18;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4667:6:47;671:5801:18;4658:4:47;4650:23;;;:120;;;;671:5801:18;4633:251:47;;;671:5801:18;;-1:-1:-1;;;;;671:5801:18;1422:10;:17;1418:41;;671:5801;;-1:-1:-1;;;6131:52:47;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;6131:52:47;;671:5801:18;;6131:52:47;;;671:5801:18;-1:-1:-1;6127:437:47;;1805:47:60;;;;671:5801:18;6493:60:47;671:5801:18;;;;6493:60:47;6127:437;6225:40;-1:-1:-1;;;;;;;;;;;6225:40:47;;;6221:120;;1748:29:60;;;:34;1744:119;;-1:-1:-1;;;;;;;;;;;671:5801:18;;-1:-1:-1;;;;;;671:5801:18;;;;;2407:36:60;-1:-1:-1;;2407:36:60;671:5801:18;;2458:15:60;:11;;671:5801:18;4065:25:67;;4107:55;4065:25;;;;;;671:5801:18;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;4107:55:67;:::i;:::-;671:5801:18;;;;4107:55:67;:::i;2454:148:60:-;6163:9;;;;6159:70;;671:5801:18;6159:70:60;6199:19;;;671:5801:18;6199:19:60;671:5801:18;;6199:19:60;1744:119;1805:47;;;671:5801:18;1805:47:60;671:5801:18;;;;1805:47:60;6221:120:47;6292:34;;;671:5801:18;6292:34:47;671:5801:18;;;;6292:34:47;6131:52;;;;671:5801:18;6131:52:47;;671:5801:18;6131:52:47;;;;;;671:5801:18;6131:52:47;;;:::i;:::-;;;671:5801:18;;;;;6131:52:47;;;;;;;-1:-1:-1;6131:52:47;;4650:120;-1:-1:-1;;;;;;;;;;;671:5801:18;-1:-1:-1;;;;;671:5801:18;4728:42:47;;;-1:-1:-1;4650:120:47;;;671:5801:18;;;;;;-1:-1:-1;;671:5801:18;;;;;;-1:-1:-1;;;;;671:5801:18;1422:10;:17;1418:41;;-1:-1:-1;;;;;;;;;;;671:5801:18;;;;2971:9:50;2967:62;;671:5801:18;;;-1:-1:-1;;;;;;;;;;;671:5801:18;3627:22:50;671:5801:18;;;1422:10;671:5801;;3627:22:50;671:5801:18;2967:62:50;3003:15;;;671:5801:18;3003:15:50;671:5801:18;;3003:15:50;671:5801:18;;;;;;-1:-1:-1;;671:5801:18;;;;5831:13;671:5801;;;-1:-1:-1;;;5816:44:18;;671:5801;;5816:44;;671:5801;;;;;;5816:44;;671:5801;;-1:-1:-1;;;;;671:5801:18;5816:44;;;;;;671:5801;5816:44;;;671:5801;;;;;;;;;5816:44;;671:5801;5816:44;;671:5801;5816:44;;;;;;671:5801;5816:44;;;:::i;:::-;;;671:5801;;;;;;;5816:44;;;;;-1:-1:-1;5816:44:18;;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;;;:::i;:::-;;;3361:103:51;;;:::i;:::-;1944:72:50;;:::i;:::-;3350:12:18;;3346:40;;-1:-1:-1;;;;;671:5801:18;;3508:7;3501:4;;3423:10;671:5801;3508:7;:::i;:::-;3549:13;671:5801;;;-1:-1:-1;;;3526:46:18;;-1:-1:-1;;;;;671:5801:18;;;;3526:46;;671:5801;;;;;;;;;;;-1:-1:-1;3526:46:18;;;;;;;;;671:5801;;;;3612:195;671:5801;;;;;3549:13;671:5801;;;;;;;;;;;;;;3612:195;;3501:4;671:5801;3612:195;;671:5801;3423:10;671:5801;;;;;;;;;;;;;;;;;;;;;;;;3612:195;;;;;;671:5801;3612:195;;;671:5801;1991:1:51;671:5801:18;-1:-1:-1;;;;;;;;;;;1991:1:51;671:5801:18;;;;;;3526:46;671:5801;3526:46;;671:5801;3526:46;;;;;;671:5801;3526:46;;;:::i;:::-;;;671:5801;;;;;;;;;;;;;3526:46;-1:-1:-1;671:5801:18;3526:46;;;;;-1:-1:-1;3526:46:18;;671:5801;;;;;;-1:-1:-1;;671:5801:18;;;;;;-1:-1:-1;;;;;671:5801:18;;;;;;;;;;-1:-1:-1;;;;;671:5801:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;671:5801:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;671:5801:18;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;671:5801:18;;;;;-1:-1:-1;671:5801:18;;;;;;;;;-1:-1:-1;;671:5801:18;;;;:::o;3470:384:51:-;1991:1;-1:-1:-1;;;;;;;;;;;671:5801:18;3670:20:51;3666:88;;1991:1;-1:-1:-1;;;;;;;;;;;1991:1:51;3470:384::o;3666:88::-;3713:30;;;-1:-1:-1;3713:30:51;;-1:-1:-1;3713:30:51;2709:128:50;671:5801:18;-1:-1:-1;;;;;;;;;;;671:5801:18;;2770:61:50;;2709:128::o;2770:61::-;2805:15;;;-1:-1:-1;2805:15:50;;-1:-1:-1;2805:15:50;1618:188:66;671:5801:18;;-1:-1:-1;;;1745:53:66;;;;;;;-1:-1:-1;;;;;671:5801:18;;;1745:53:66;;;671:5801:18;;;;;;;;;;;;;;;;;1745:53:66;;;1618:188;-1:-1:-1;;1745:53:66;;;671:5801:18;1745:53:66;:::i;:::-;8507:421;;;;;;;;;-1:-1:-1;8507:421:66;;8942:15;;-1:-1:-1;;;;;;671:5801:18;;8960:26:66;:31;8942:68;8938:146;;1618:188;:::o;8938:146::-;-1:-1:-1;;;;9033:40:66;;;-1:-1:-1;;;;;671:5801:18;;;;9033:40:66;671:5801:18;1745:53:66;;9033:40;8942:68;9009:1;8994:16;;8942:68;;7082:141:46;671:5801:18;-1:-1:-1;;;;;;;;;;;671:5801:18;;;;7148:18:46;7144:73;;7082:141::o;7144:73::-;7189:17;;;-1:-1:-1;7189:17:46;;-1:-1:-1;7189:17:46;4437:582:67;;4609:8;;-1:-1:-1;671:5801:18;;5690:21:67;:17;;5815:105;;;;;;5686:301;5957:19;;;5710:1;5957:19;;5710:1;5957:19;4605:408;671:5801:18;;4857:22:67;:49;;;4605:408;4853:119;;4985:17;;:::o;4853:119::-;-1:-1:-1;;;4878:1:67;4933:24;;;-1:-1:-1;;;;;671:5801:18;;;;4933:24:67;671:5801:18;;;4933:24:67;4857:49;4883:18;;;:23;4857:49;","linkReferences":{},"immutableReferences":{"50940":[{"start":2151,"length":32},{"start":2359,"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\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"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.\"}],\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}],\"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\":\"0x00de30c4ae8bd8d8722771e7fa64accb1d8054ab2a5b1fd467554a66a67e7f0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2e28c7539db6fb9d18204808ff5813b92aa54eb931890e022cd4f66174f3a24\",\"dweb:/ipfs/QmdSFkXToPhvhi5mc188BH5qBBZLLtQTSBDfxjyMf32u2q\"]},\"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":[{"internalType":"address","name":"token","type":"address"}],"type":"error","name":"SafeERC20FailedOperation"},{"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":"0x00de30c4ae8bd8d8722771e7fa64accb1d8054ab2a5b1fd467554a66a67e7f0a","urls":["bzz-raw://a2e28c7539db6fb9d18204808ff5813b92aa54eb931890e022cd4f66174f3a24","dweb:/ipfs/QmdSFkXToPhvhi5mc188BH5qBBZLLtQTSBDfxjyMf32u2q"],"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} |