AugurProject / turbo

Simple, AMM-based Prediction Markets backed by Chainlink Oracles.
MIT License
27 stars 23 forks source link

add estimation method and contract calling method with approval #1545

Closed bthaile closed 2 years ago

bthaile commented 2 years ago

To determine if market is out of whack: contract-calls isMarketPoolWhacked

get USDC value user will need to send: contract-calls maxWhackedCollateralAmount collateralUsd property

new constant for approval: ApprovalAction.RESET_PRICES

updated use approval, the user will only have to approve the helper contract once.

estimate resetting prices: contract-calls estimateResetPrices returns same structure as add liquidity

handling resetting prices submit tx is handled normally. It won't show up in user activities.