Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template: GlueX Liquidity Module Integration
Protocol Information
Summary of Integration
Provide a brief overview of your integration:
WOOFi's swap uses an onchain market-making algorithm called Synthetic Proactive Market Making (sPMM). The sPMM algorithm, which works in tandem with WOOFi's high-frequency onchain oracles allows professional market makers to simulate the price, spread, and depth of the order book on centralized exchanges onchain.
DEX
Implementation Details
Execution Functions Required
ABI
Chain and Address
Functions Implemented
get_amount_out(): uses the logic from the WOOFi Pool contract, solidity code is currently privateget_amount_in(): same as the aboveget_apy(): N/Aget_tvl(): N/ADynamic States Required for AMM Calculations
Specify any on-chain values that change frequently and are required for accurate AMM computations, such as:
Pool States:
0x5520385bFcf07Ec87C4c53A7d8d65595Dff69FA40x2A375567f5E13F6bd74fDa7627Df3b1Af6BfA5a60x2A8Ede62D0717C8C92b88639ecf603FDF31A84280xCf4EA1688bc23DD93D933edA535F8B72FC8934Ec0xA43305Ce0164D87d7B2368f91a1dcC4eBdA75127For Pool reserve, fee_rate, max_gamma, max_notional_swap state, use the Pool contract with token address as input
ABI
Sample
For Wooracle price, spread, coeff, wo_feasible, use the Wooracle contract with token address as input
ABI
Sample
Static States Required for AMM Calculations
Specify any on-chain values that remain constant such as:
Dependencies
N/A
Other Requirements
Test Results
Provide details of tests performed, including: