Commit 19e8674
committed
feat: add Yield+ feature
1 parent e00698e commit 19e8674
300 files changed
Lines changed: 12168 additions & 1045 deletions
File tree
- .changeset
- apps/evm
- src
- App
- Routes
- __mocks__/models
- assets/styles
- clients/api
- __mocks__
- mutations
- useApproveToken
- __tests__
- useBorrow
- __tests__
- useBridgeXvs
- __tests__
- useCancelProposal
- __tests__
- useClaimPrimeToken
- __tests__
- useClaimRewards
- __tests__
- useCloseYieldPlusPositionWithLoss
- __tests__
- __snapshots__
- useCloseYieldPlusPositionWithProfit
- __tests__
- __snapshots__
- useCreateProposal
- __tests__
- useEnterMarket
- __tests__
- useExecuteProposal
- __tests__
- useExecuteWithdrawalFromXvsVault
- __tests__
- useExitMarket
- __tests__
- useImportSupplyPosition
- __tests__
- useIncreaseYieldPlusPosition
- __tests__
- __snapshots__
- useMintVai
- __tests__
- useOpenLeveragedPosition
- __tests__
- useOpenYieldPlusPosition
- __tests__
- __snapshots__
- useQueueProposal
- __tests__
- useReduceYieldPlusPositionWithLoss
- __tests__
- __snapshots__
- useReduceYieldPlusPositionWithProfit
- __tests__
- __snapshots__
- useRepayVai
- __tests__
- useRepayWithCollateral
- __tests__
- useRepay
- __tests__
- useRequestWithdrawalFromXvsVault
- __tests__
- useSetEModeGroup
- useSetVoteDelegate
- __tests__
- useStakeInVaiVault
- __tests__
- useStakeInVault
- __tests__
- useStakeInXvsVault
- __tests__
- useSupplyYieldPlusPositionCollateral
- __tests__
- __snapshots__
- useSupply
- __tests__
- useSwapTokensAndRepay
- __tests__
- useSwapTokensAndSupply
- __tests__
- useSwapTokens
- __tests__
- useUpdatePoolDelegateStatus
- __tests__
- useVote
- __tests__
- useWithdrawFromVaiVault
- __tests__
- useWithdrawYieldPlusPositionCollateral
- __tests__
- __snapshots__
- useWithdraw
- __tests__
- queries
- getAccountTransactionHistory
- __tests__
- getDsaVTokens
- __tests__
- getProportionalCloseTolerancePercentage
- __tests__
- getRawYieldPlusPositions
- getSwapQuote/formatSwapQuote/applySlippagePercentage
- getTokenUsdPrice
- getXvsBridgeFeeEstimation
- getXvsVaultPaused
- useGetAsset
- useGetPools
- __tests__
- getPools/getUserTokenBalances
- useGetPool
- useGetPrimeEstimation
- useGetVaults
- __tests__
- useGetVestingVaults
- components
- Apy
- PrimeBadge/PrimeApy
- AvailableBalance
- BalanceUpdates
- ButtonGroup
- CellGroup
- Cell
- KLineChart
- rgb
- LabeledSlider
- LabeledValueUpdate
- LayeredValues
- Table
- Head
- TableCards
- MarketCard
- Tabs
- TokenIcon
- TokenListWrapper
- TransactionsList
- TransactionDetails
- TransactionRow
- getTransactionIcon
- constants
- containers
- MarketTable
- RowControl
- Placeholder
- TxFormSubmitButton
- SubmitButton
- hooks
- useCommonValidation
- __tests__
- __snapshots__
- useGetYieldPlusPositions
- useIsFeatureEnabled
- useSimulateYieldPlusPositionMutations
- libs
- contracts/config
- externalAbis
- translations/translations
- pages
- Bridge/__tests__
- Dashboard
- Transactions
- TransactionsList
- __tests__/__snapshots__
- Markets/Tabs/EMode/EModeGroup
- Market
- EModeInfo
- MarketHistory/Card/CapThreshold
- OperationForm
- BoostForm
- RiskSlider
- SubmitSection
- useForm
- BorrowForm/useForm
- OperationDetails
- Repay
- RepayWithCollateralForm
- SubmitSection
- useForm
- RepayWithWalletBalanceForm
- useForm
- useFormValidation
- SupplyForm
- __tests__
- useForm
- WithdrawForm
- SubmitSection
- useForm
- YieldPlus
- AccountHealth
- Banner
- store
- __tests__
- ClosePositionModal
- Form
- store
- __tests__
- OperationForm
- ManagePositionTabs
- CollateralTabs
- SupplyForm
- WithdrawForm
- __tests__
- __snapshots__
- PositionTabs
- IncreaseForm
- __tests__
- __snapshots__
- OpenForm
- Form
- __tests__
- __snapshots__
- useGetNewYieldPlusPosition
- PositionForm
- Form
- DsaTokenTextField
- SelectDsaTokenTextField
- LeverageFactorModal
- StepButton
- getSteps
- WalletBalance
- calculateWeightedAverageSwapPriceImpact
- __tests__
- useFormValidation
- calculateMaxBorrowShortTokens
- calculateMaxLeverageFactor
- calculateUnusedCollateralCents
- ceilDivide
- floorValue
- usePositionForm
- PairInfo
- TokenSelect
- Positions
- PositionList
- rowKeyExtractor
- useColumns
- ReduceForm
- TokenPair
- TokenIcon
- constants
- formatLiquidationPriceTokensToReadableValue
- useGetSelectedYieldPosition
- useGetYieldPlusAssets
- __tests__
- useTokenPair
- store
- types
- utilities
- calculateUserMaxBorrowTokens
- __tests__
- convertPercentageToBps
- __tests__
- formatToYieldPlusPosition
- getSwapFromTokenAmount
- getSwapToTokenAmount
- getTransactionName
- safeLazyLoad
- packages/ui/src/components/Button
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
179 | 192 | | |
180 | 193 | | |
181 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 91 | | |
108 | 92 | | |
109 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments