forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Migration page integration (pancakeswap#3580)
* feat: MasterChefFarmCalls totalAllocPoint change to totalRegularAllocPoint * fix: Eslint * fix: Migration pool step 1 total staked amount * feat: Pool and Farms v1 remove unstakeFarm utils * refactor: Using menu height and banner heigth in config * feat: Remove BountyCard, BountyModal, HelpButton component * refactor: Remove ifo at pool data list * feat: Add vakeVaultV2 Abi & deposit add lockDuration * feat: Version 2 Auto Cake rename to Lock Cake * fix: IFO handleDeposit methodArgs * fix: Wrong file direction * feat: Update tester contract address * fix: V1 pool unstake contract * feat: Filter manual cake and change mock cake address * fix: Develop mode rpc CORS * feat: Adding AutoRenewIcon * fix: UsePollCoreFarmData and usePriceCakeBusd * feat: Remove sousId 0 unused code * style: Change Spinner component, add border in pool and farm table * add locked component * fix types * fix: V1 auto pool * card vault action * merge v2 back * fix build * fix: Remove multiplier zero * feat: Ifo page remove unused code * Add lock amount and duration * remove log * fix require sucess false * add vault position * feat: Add button props for locked button * refactor: Remove all ifo in state * feat: Remove unused IfoPool code * chore: Change node and add annotate * feat: New IfoPoolVaultCardMobile * feat: New ifo vault card with v1 data * fix: Remove fetchIfoPoolFees * chore: Add comment * apy (#8) * apy * memo * clean up * fix * apply table * feat: Decorator for lock button (#7) * fix table stake modal button * feat: Adding v1 farms link * flexible done * fix table view * fix build * fix deposit * fix: Pools withdraw decimals * style: Update css * use duck typing for cake pool utils * clean up vault apy hook * feat: Migration step2 using new pool layout * update vault position enum * update vault position enum none * feat: Update pool history wording * vault position table view desktop * add test * feat: Update cakeVault contract address and ABI * feat: disabled with soon decorator for lock button (pancakeswap#13) * feat: disabled with soon decorator for lock button * chore: use maxDuration isZero method * chore: change the disabled condtion * chore: adjustment for disabled * fix: isLockedEnd and cakePool test * feat: Locked Pool table layout * feat: Update vaultPosition * hoist cake balance and minus fee (pancakeswap#15) * hoist cake balance and minus fee * temp update pid * chore: Add Stake Modal * chore: Add Lock Stake Card style * feat(locked-pool): Implement user data presenter * chore: Add Locked Card Actions condition * feat(lock-pool): Add static amount modal * chore: Add Overview implementation * chore(locked-pool): Refactor Locked Modal * chore(pool-limit): Add duration max * chore(locked-pool): Add Extend and Add Cake Modal * chore: Add Burning state * chore(locked-pool): Add BalanceWithLoading * chore(locked-pool): Add ExtendDuration logic * feat(locked-pool): Add Renew Cake logic * chore: Add burning count down * chore: Add Burned Cake in Locked Card * chore: Add Switch To Flexible logic * chore: Styling Lock Pool Row * chore: Add Locked Actions in Pool Row * chore(locked-pool): Move to LockPool directory * chore: Add LockedStakeModal in Lock Button * chore: Update LoadingBalance * chore: Add Type * chore: Fix minor type mismatch * chore: Fix Cake Balance * fix: Show - when duration is exceeded * fix: Round remaining weeks * chore: Update UI * chore: Update lock logic * chore: Update text color * fix: Update Renew logic * chore: Update gaslimit * chore: Disable Add Cake when balance is zero * chore: Update Cake Locked display logic * chore: Update current locked amount in modal * chore: Add translation * chore: Fix date mismatch between card and modal * chore: Update auto tooltip (pancakeswap#21) * feat: UseVaultPoolContract add useMemo (pancakeswap#23) Co-authored-by: Chef Momota <[email protected]> * feat: Add locked roi calc (pancakeswap#20) * feat: Add locked roi calc * update roi deposit * update withdraw method * add vault roi to table * remove interest break down tooltip * chore: Add new mock cake pool address (pancakeswap#22) * update abi * feat: Improve suggestions * chore: Fix merge * chore: Update Lock Row * fix: Add float in balance field * chore: Style button * fix: Not show Roi and APY * chore: Add RoiCalculatorModalProvider * chore: Update modal title * chore: Adjust color for new text * chore: Update Roi Calculator * chore: Hide convert to lock when max duration is 0 * chore: Update test * small ui fix * feat: Locked warning tableview * chore: Remove BurnedCake component * fix: Small ui fix (pancakeswap#28) * fix: Small ui fix * update contract address * update duration * fix: Lock pool ui * feat: Flexable warning table view (pancakeswap#27) * max duration optional * feat: Adding convertTimeToDistance utils * fix: Pool burn cake ui * feat: Cake Pool Namecell * chore: merge render condition * style: Migration table style * chore: Adding m from farmer motion * update apy roi base on select * chore: Move to config * chore: Update string * feat: Cake pool UI details * chore: Use Insufficient modal instead of disable the Add CAKE button * move mock timer * chore: Update localization * fix: Details to display in after burning state * feat: Dynamic unit for duration displays * chore: Update variable naming * chore: Migration FE wording fixes * chore: Add yield boost * chore: WeekDuration using formatSecondsToWeeks * chore: Naming remainingWeeks change to remainingTime * chore: Update wording * style: Sort pool card detail * feat: LockedModal add boostFactor * chore: Add prefix * chore: adjust cake pool wording * chore: Add Skeleton in Add CAKE button * fix: Utils distanceToNowStrict handle invalid time * chore: Update useVaultApy * style: Migration v1 farms token size * chore: Add Boost Yield Duration Rows * chore: Update migration page link * style: AfterLockedAction css * chore: Revert MC v1 contract address * fix: Test * feat: Update MCv2 contract address * chore: Fix failed test * feat(flexible-pool): Add staking fee row * chore: Fix fee squash in flexible box * chore: Avoid NaN in BalanceLoading * chore: Vpid -> v1pid * fix: Lint * memo * fix: Locked amount little deviation (pancakeswap#53) * fix: lockedAmount deviation * chore: locked amount bignumber issue * chore: use getDecimalAmount * chore: Add warning for Insufficient CAKE balance * chore: Remove unused translations keys * chore: Add new translations keys * fix: Remove legacy strategy file * chorr: useUserEnoughValidator * chore: Remove unused code * chore: Remove BigNumber * fix: Reduce effect loop * perf: Reduce new pool request * get user data loading * style: Update cake pool table style * chore: Mobile show Flexible APR & Locked APR at ActionPanel * fix: ROI footer when apy 0 * apy 0 * chore: use stakingTokenBalance to handle * fix: Safari flex (pancakeswap#67) * fix: APY fixed number (pancakeswap#69) * fix: APY fixed number * no show fix apy yet * fix test * clean up * chore: Hide ROI calculator Co-authored-by: Chef Momota <[email protected]> Co-authored-by: ChefJoJo <[email protected]> Co-authored-by: Chef Yogi <[email protected]> Co-authored-by: chefilip <[email protected]> Co-authored-by: Philip <[email protected]>
- Loading branch information
1 parent
2351c3e
commit bfdef78
Showing
217 changed files
with
11,572 additions
and
6,854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import Svg from "../Svg"; | ||
import { SvgProps } from "../types"; | ||
|
||
const Icon: React.FC<SvgProps> = (props) => { | ||
return ( | ||
<Svg width={16} height={16} viewBox="0 0 16 16" fill="none" {...props}> | ||
<path | ||
d="M11.3933 3.03997C10.9266 2.35331 10.3933 1.71331 9.79329 1.13997C9.55996 0.913306 9.16663 1.12664 9.23329 1.44664C9.35996 2.07331 9.49329 2.89997 9.49329 3.63997C9.49329 5.01331 8.59329 6.12664 7.21996 6.12664C6.19329 6.12664 5.35329 5.50664 4.98663 4.61997C4.91996 4.48664 4.89329 4.40664 4.85329 4.25997C4.77996 3.97997 4.41329 3.89331 4.25329 4.13997C4.13329 4.31997 4.01996 4.49997 3.91329 4.69331C3.11996 6.05331 2.66663 7.63997 2.66663 9.33331C2.66663 12.28 5.05329 14.6666 7.99996 14.6666C10.9466 14.6666 13.3333 12.28 13.3333 9.33331C13.3333 7.00664 12.6133 4.84664 11.3933 3.03997ZM7.80663 12.6666C6.61996 12.6666 5.65996 11.7333 5.65996 10.5733C5.65996 9.49331 6.35996 8.73331 7.53329 8.49331C8.51329 8.29331 9.51996 7.87331 10.22 7.21331C10.4066 7.03997 10.7133 7.11997 10.7666 7.36664C10.92 8.04664 11 8.75331 11 9.46664C11.0066 11.2333 9.57329 12.6666 7.80663 12.6666Z" | ||
fill="currentColor" | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import Svg from "../Svg"; | ||
import { SvgProps } from "../types"; | ||
|
||
const Icon: React.FC<SvgProps> = (props) => { | ||
return ( | ||
<Svg width={16} height={16} viewBox="0 0 16 16" fill="none" {...props}> | ||
<path | ||
d="M7.99996 11.3334C8.73329 11.3334 9.33329 10.7334 9.33329 10.0001C9.33329 9.26675 8.73329 8.66675 7.99996 8.66675C7.26663 8.66675 6.66663 9.26675 6.66663 10.0001C6.66663 10.7334 7.26663 11.3334 7.99996 11.3334ZM12 5.33342H11.3333V4.00008C11.3333 2.16008 9.83996 0.666748 7.99996 0.666748C6.15996 0.666748 4.66663 2.16008 4.66663 4.00008V5.33342H3.99996C3.26663 5.33342 2.66663 5.93341 2.66663 6.66675V13.3334C2.66663 14.0667 3.26663 14.6667 3.99996 14.6667H12C12.7333 14.6667 13.3333 14.0667 13.3333 13.3334V6.66675C13.3333 5.93341 12.7333 5.33342 12 5.33342ZM5.93329 4.00008C5.93329 2.86008 6.85996 1.93341 7.99996 1.93341C9.13996 1.93341 10.0666 2.86008 10.0666 4.00008V5.33342H5.93329V4.00008ZM12 13.3334H3.99996V6.66675H12V13.3334Z" | ||
fill="currentColor" | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import Svg from "../Svg"; | ||
import { SvgProps } from "../types"; | ||
|
||
const Icon: React.FC<SvgProps> = (props) => { | ||
return ( | ||
<Svg width={16} height={16} viewBox="0 0 16 16" fill="none" {...props}> | ||
<path | ||
d="M9.333 2.667l1.527 1.526-1.92 1.92.947.947 1.92-1.92 1.526 1.527v-4h-4zm-2.666 0h-4v4L4.193 5.14l3.14 3.133v5.06h1.334V7.727L5.14 4.193l1.527-1.526z" | ||
fill="currentColor" | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import Svg from "../Svg"; | ||
import { SvgProps } from "../types"; | ||
|
||
const Icon: React.FC<SvgProps> = (props) => { | ||
return ( | ||
<Svg width={16} height={16} viewBox="0 0 16 16" fill="none" {...props}> | ||
<path | ||
d="M8 11.333c.733 0 1.333-.6 1.333-1.333S8.733 8.667 8 8.667s-1.333.6-1.333 1.333.6 1.333 1.333 1.333zm4-6h-.667V4a3.335 3.335 0 00-6.666 0h1.266c0-1.14.927-2.067 2.067-2.067 1.14 0 2.067.927 2.067 2.067v1.333H4c-.733 0-1.333.6-1.333 1.334v6.666c0 .734.6 1.334 1.333 1.334h8c.733 0 1.333-.6 1.333-1.334V6.667c0-.734-.6-1.334-1.333-1.334zm0 8H4V6.667h8v6.666z" | ||
fill="currentColor" | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.