fix claim banner season number
This commit is contained in:
parent
4e4fc5f455
commit
c0ad267e84
|
@ -57,7 +57,7 @@ const PromoBanner = () => {
|
||||||
return seasonData?.season_id && isWhiteListed ? (
|
return seasonData?.season_id && isWhiteListed ? (
|
||||||
showClaim ? (
|
showClaim ? (
|
||||||
<BannerContent
|
<BannerContent
|
||||||
text={`Claiming season ${seasonData.season_id} rewards ends ${
|
text={`Claiming season ${seasonData.season_id - 1} rewards ends ${
|
||||||
claimEndsIn || ''
|
claimEndsIn || ''
|
||||||
}.`}
|
}.`}
|
||||||
linkText="Claim Now"
|
linkText="Claim Now"
|
||||||
|
|
|
@ -151,7 +151,7 @@ export const fetchJupiterTransaction = async (
|
||||||
// This is the ATA account for the output token where the fee will be sent to. If you are swapping from SOL->USDC then this would be the USDC ATA you want to collect the fee.
|
// This is the ATA account for the output token where the fee will be sent to. If you are swapping from SOL->USDC then this would be the USDC ATA you want to collect the fee.
|
||||||
// feeAccount: 'fee_account_public_key',
|
// feeAccount: 'fee_account_public_key',
|
||||||
slippageBps: Math.ceil(slippage * 100),
|
slippageBps: Math.ceil(slippage * 100),
|
||||||
maxAccounts: 50
|
maxAccounts: 50,
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
).json()
|
).json()
|
||||||
|
@ -194,7 +194,8 @@ const successSound = new Howl({
|
||||||
volume: 0.5,
|
volume: 0.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
const SwapReviewRouteInfo = ({
|
const SwapReviewRouteInfo = (
|
||||||
|
{
|
||||||
amountIn,
|
amountIn,
|
||||||
isWalletSwap,
|
isWalletSwap,
|
||||||
onClose,
|
onClose,
|
||||||
|
@ -203,7 +204,8 @@ const SwapReviewRouteInfo = ({
|
||||||
selectedRoute,
|
selectedRoute,
|
||||||
setSelectedRoute,
|
setSelectedRoute,
|
||||||
show,
|
show,
|
||||||
}: JupiterRouteInfoProps) => {
|
}: JupiterRouteInfoProps,
|
||||||
|
) => {
|
||||||
const { t } = useTranslation(['common', 'trade'])
|
const { t } = useTranslation(['common', 'trade'])
|
||||||
const slippage = mangoStore((s) => s.swap.slippage)
|
const slippage = mangoStore((s) => s.swap.slippage)
|
||||||
const wallet = useWallet()
|
const wallet = useWallet()
|
||||||
|
|
|
@ -30,7 +30,7 @@ const fetchJupiterRoute = async (
|
||||||
swapMode = 'ExactIn',
|
swapMode = 'ExactIn',
|
||||||
feeBps = 0,
|
feeBps = 0,
|
||||||
onlyDirectRoutes = true,
|
onlyDirectRoutes = true,
|
||||||
maxAccounts = 50
|
maxAccounts = 50,
|
||||||
) => {
|
) => {
|
||||||
{
|
{
|
||||||
const paramsString = new URLSearchParams({
|
const paramsString = new URLSearchParams({
|
||||||
|
@ -178,7 +178,8 @@ export const handleGetRoutes = async (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const useQuoteRoutes = ({
|
const useQuoteRoutes = (
|
||||||
|
{
|
||||||
inputMint,
|
inputMint,
|
||||||
outputMint,
|
outputMint,
|
||||||
amount,
|
amount,
|
||||||
|
@ -187,7 +188,8 @@ const useQuoteRoutes = ({
|
||||||
wallet,
|
wallet,
|
||||||
mode = 'ALL',
|
mode = 'ALL',
|
||||||
enabled,
|
enabled,
|
||||||
}: useQuoteRoutesPropTypes) => {
|
}: useQuoteRoutesPropTypes,
|
||||||
|
) => {
|
||||||
const [debouncedAmount] = useDebounce(amount, 250)
|
const [debouncedAmount] = useDebounce(amount, 250)
|
||||||
const { inputTokenInfo, outputTokenInfo } = useJupiterSwapData()
|
const { inputTokenInfo, outputTokenInfo } = useJupiterSwapData()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue