fix claim banner season number

This commit is contained in:
saml33 2023-10-24 09:51:09 +11:00
parent 4e4fc5f455
commit c0ad267e84
3 changed files with 27 additions and 23 deletions

View File

@ -57,7 +57,7 @@ const PromoBanner = () => {
return seasonData?.season_id && isWhiteListed ? (
showClaim ? (
<BannerContent
text={`Claiming season ${seasonData.season_id} rewards ends ${
text={`Claiming season ${seasonData.season_id - 1} rewards ends ${
claimEndsIn || ''
}.`}
linkText="Claim Now"

View File

@ -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.
// feeAccount: 'fee_account_public_key',
slippageBps: Math.ceil(slippage * 100),
maxAccounts: 50
maxAccounts: 50,
}),
})
).json()
@ -194,7 +194,8 @@ const successSound = new Howl({
volume: 0.5,
})
const SwapReviewRouteInfo = ({
const SwapReviewRouteInfo = (
{
amountIn,
isWalletSwap,
onClose,
@ -203,7 +204,8 @@ const SwapReviewRouteInfo = ({
selectedRoute,
setSelectedRoute,
show,
}: JupiterRouteInfoProps) => {
}: JupiterRouteInfoProps,
) => {
const { t } = useTranslation(['common', 'trade'])
const slippage = mangoStore((s) => s.swap.slippage)
const wallet = useWallet()

View File

@ -30,7 +30,7 @@ const fetchJupiterRoute = async (
swapMode = 'ExactIn',
feeBps = 0,
onlyDirectRoutes = true,
maxAccounts = 50
maxAccounts = 50,
) => {
{
const paramsString = new URLSearchParams({
@ -178,7 +178,8 @@ export const handleGetRoutes = async (
}
}
const useQuoteRoutes = ({
const useQuoteRoutes = (
{
inputMint,
outputMint,
amount,
@ -187,7 +188,8 @@ const useQuoteRoutes = ({
wallet,
mode = 'ALL',
enabled,
}: useQuoteRoutesPropTypes) => {
}: useQuoteRoutesPropTypes,
) => {
const [debouncedAmount] = useDebounce(amount, 250)
const { inputTokenInfo, outputTokenInfo } = useJupiterSwapData()