Skip to content

Commit

Permalink
Merge pull request #250 from jediswaplabs/vinaysingh/sepolia-contract…
Browse files Browse the repository at this point in the history
…s-update

Vinaysingh/sepolia contracts update
  • Loading branch information
vnaysngh-mudrex authored May 6, 2024
2 parents b556083 + fb42b2b commit d9c766c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/api/fetchAllPairs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainId } from '@vnaysn/jediswap-sdk-core'
import { FACTORY_ADDRESS_CLASS_HASH, POOL_CLASS_HASH, STARKSCAN_PROXY_ADDRESS } from 'constants/tokens'
import { FACTORY_ADDRESS_CLASS_HASH, STARKSCAN_PROXY_ADDRESS } from 'constants/tokens'

const options = {
method: 'GET',
Expand Down
10 changes: 1 addition & 9 deletions src/components/FeeSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,7 @@ export default function FeeSelector({
<ThemedText.DeprecatedLabel className="selected-fee-label">
<Trans>{FEE_AMOUNT_DETAIL[feeAmount].label}% fee tier</Trans>
</ThemedText.DeprecatedLabel>
{/* <Box style={{ width: 'fit-content', marginTop: '8px' }} className="selected-fee-percentage">
{distributions && (
<FeeTierPercentageBadge
distributions={distributions}
feeAmount={feeAmount}
poolState={poolsByFeeTier[feeAmount]}
/>
)}
</Box> */}
<Box style={{ width: 'fit-content', marginTop: '8px' }} className="selected-fee-percentage"></Box>
</>
)}
</AutoColumn>
Expand Down
8 changes: 4 additions & 4 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export function nativeOnChain(chainId: ChainId): NativeCurrency | Token {

export const POOL_CLASS_HASH = {
[ChainId.MAINNET]: '0x426a4fb3b82644a07dbab45099214976f880d7aba0d399c88f59297a3cf1aa6',
[ChainId.GOERLI]: '0x426a4fb3b82644a07dbab45099214976f880d7aba0d399c88f59297a3cf1aa6',
[ChainId.GOERLI]: '0x2cd3c16a0112b22ded4903707f268125fcf46fd7733761e62c13fc0157afd8d',
}
export const FACTORY_ADDRESS = {
[ChainId.MAINNET]: '0x07bf9f8fc91a0c0814a254c8e77218620801e077d090cb627fa9a25674ce2970',
[ChainId.GOERLI]: '0x06dbda35590e23a4eb5f4550e4f783d3d3dc1f3cb7009dae72cf382fed225a0e',
[ChainId.GOERLI]: '0x050d3df81b920d3e608c4f7aeb67945a830413f618a1cf486bdcce66a395109c',
}

export const FACTORY_ADDRESS_CLASS_HASH: { [chainId in ChainId]: string } = {
Expand All @@ -42,11 +42,11 @@ export const FACTORY_ADDRESS_CLASS_HASH: { [chainId in ChainId]: string } = {

export const NONFUNGIBLE_POOL_MANAGER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.MAINNET]: '0x045cb97368b10d6a5345bf7cfde71bc99360687451519a0e2a3508b32f50ece0',
[ChainId.GOERLI]: '0x0039f2ddabfabc3ff69c27870ef5d10d5af29a268166e5cd5a557c2a0305e714',
[ChainId.GOERLI]: '0x024fd9721eea36cf8cebc226fd9414057bbf895b47739822f849f622029f9399',
}
export const SWAP_ROUTER_ADDRESS_V2 = {
[ChainId.MAINNET]: '0x039c6dac17d1968f5bbbf65b4180fc3cb83cfea08147cbb1950e053f647d21f8',
[ChainId.GOERLI]: '0x05e50cdc6062f96efdb7f871e04a8f878c827b8941cd4b4ddbc4d861e625b478',
[ChainId.GOERLI]: '0x03c8e56d7f6afccb775160f1ae3b69e3db31b443e544e56bd845d8b3b3a87a21',
}

export const SWAP_ROUTER_ADDRESS_V1 = {
Expand Down
2 changes: 1 addition & 1 deletion src/state/mint/v3/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export function useV3DerivedMintInfo(
typeof existingPosition?.tickUpper === 'number'
? existingPosition.tickUpper
: (!invertPrice && typeof rightRangeTypedValue === 'boolean') ||
(invertPrice && typeof leftRangeTypedValue === 'boolean')
(invertPrice && (typeof leftRangeTypedValue === 'boolean' || leftRangeTypedValue === '0'))
? tickSpaceLimits[Bound.UPPER]
: invertPrice
? tryParseTick(token1, token0, feeAmount, leftRangeTypedValue.toString())
Expand Down

0 comments on commit d9c766c

Please sign in to comment.