Skip to content

Commit

Permalink
set full range to min/max possible value
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 13, 2024
1 parent 47ff973 commit 83252a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/src/components/StakeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ export const StakeForm = ({ mode, poolId, positionId }: StakeFormProps) => {

useEffect(() => {
if (liquidityRangeType === "full-range") {
// TODO set to price of min/max tick
setPriceLower("-100")
setPriceLower("100")
// lower price is 1 base fUSDC (0.000001)
setPriceLower(`0.${"0".repeat(token1.decimals - 1)}1`)
// upper price is max tick adjusted for decimals
setPriceUpper(BigInt(1.0001 ** MAX_TICK * 10 ** -fUSDC.decimals).toString())
}
else if (liquidityRangeType === "auto") {
// TODO determine auto price
Expand Down

0 comments on commit 83252a9

Please sign in to comment.