[{"inputs":[{"internalType":"address","name":"_bidToken","type":"address"},{"internalType":"address","name":"_principalToken","type":"address"},{"internalType":"address","name":"_addressProvider","type":"address"},{"internalType":"address","name":"_aggregator","type":"address"},{"internalType":"uint256","name":"_biddingDuration","type":"uint256"},{"internalType":"uint256","name":"_gamingDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isShortLastRoundWinner","type":"bool"},{"indexed":false,"internalType":"int256","name":"initialPrice","type":"int256"},{"indexed":false,"internalType":"int256","name":"endPrice","type":"int256"}],"name":"AnnounceWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"shortPrincipalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"longPrincipalAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"principalAmount","type":"uint256"}],"name":"SponsorDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"sponsorTokenAmount","type":"uint256"}],"name":"SponsorWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"valuePerShortToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valuePerLongToken","type":"uint256"}],"name":"UpdateTokenValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isAToken","type":"bool"},{"indexed":false,"internalType":"uint256","name":"shortTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"longTokenAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bidToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"checkData","type":"bytes"}],"name":"checkUpkeep","outputs":[{"internalType":"bool","name":"upkeepNeeded","type":"bool"},{"internalType":"bytes","name":"performData","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakedAAVEAddress_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"claimAAVE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shortPrincipalAmount","type":"uint256"},{"internalType":"uint256","name":"longPrincipalAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inPoolTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shortToken_","type":"address"},{"internalType":"address","name":"longToken_","type":"address"},{"internalType":"address","name":"sponsorToken_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"performData","type":"bytes"}],"name":"performUpkeep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"poolTermination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"poolTokensInfo","outputs":[{"internalType":"address","name":"longToken","type":"address"},{"internalType":"address","name":"shortToken","type":"address"},{"internalType":"address","name":"sponsorToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"principalToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"principalAmount","type":"uint256"}],"name":"sponsorDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sponsorTokenAmount","type":"uint256"}],"name":"sponsorWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFirstRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"bool","name":"isShortLastRoundWinner","type":"bool"},{"internalType":"bool","name":"isFirstUser","type":"bool"},{"internalType":"bool","name":"isFirstRound","type":"bool"},{"internalType":"uint256","name":"gameRound","type":"uint256"},{"internalType":"uint256","name":"durationOfGame","type":"uint256"},{"internalType":"uint256","name":"durationOfBidding","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"int256","name":"initialPrice","type":"int256"},{"internalType":"int256","name":"endPrice","type":"int256"},{"internalType":"enum ILosslessV2Pool.PoolStatus","name":"currState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"fromLongToShort","type":"bool"},{"internalType":"uint256","name":"swapTokenAmount","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"userLongPrincipalBalance","outputs":[{"internalType":"uint256","name":"userLongAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"userShortPrincipalBalance","outputs":[{"internalType":"uint256","name":"userShortAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"valuePerLongToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"valuePerShortToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"valuePerSponsorToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isAToken","type":"bool"},{"internalType":"uint256","name":"shortTokenAmount","type":"uint256"},{"internalType":"uint256","name":"longTokenAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]