-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rays with multipliers in portfolio (#3963)
- Loading branch information
Showing
30 changed files
with
360 additions
and
80 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import type { PositionRaysMultipliersData } from 'features/rays/types' | ||
import { RaysMultipliersType } from 'features/rays/types' | ||
import { PositionRaysMultipliersType } from 'features/rays/types' | ||
|
||
export const getAutomationBoost = (positionRaysMultipliersData: PositionRaysMultipliersData) => | ||
positionRaysMultipliersData.position.find((item) => item.type === RaysMultipliersType.AUTOMATION) | ||
?.value || 1 | ||
positionRaysMultipliersData.position.find( | ||
(item) => item.type === PositionRaysMultipliersType.AUTOMATION, | ||
)?.value || 1 |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import type { PositionRaysMultipliersData } from 'features/rays/types' | ||
import { RaysMultipliersType } from 'features/rays/types' | ||
import { UserRaysMultipliersType } from 'features/rays/types' | ||
|
||
export const getProtocolBoost = (positionRaysMultipliersData: PositionRaysMultipliersData) => | ||
positionRaysMultipliersData.user.find((item) => item.type === RaysMultipliersType.PROTOCOL_BOOST) | ||
?.value || 1 | ||
positionRaysMultipliersData.user.find( | ||
(item) => item.type === UserRaysMultipliersType.PROTOCOL_BOOST, | ||
)?.value || 1 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { PositionRaysMultipliersData } from 'features/rays/types' | ||
import { RaysMultipliersType } from 'features/rays/types' | ||
import { UserRaysMultipliersType } from 'features/rays/types' | ||
|
||
export const getSwapBoost = (positionRaysMultipliersData: PositionRaysMultipliersData) => | ||
positionRaysMultipliersData.user.find((item) => item.type === RaysMultipliersType.SWAP)?.value || | ||
1 | ||
positionRaysMultipliersData.user.find((item) => item.type === UserRaysMultipliersType.SWAP) | ||
?.value || 1 |
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,7 @@ | ||
import type { PositionRaysMultipliersData } from 'features/rays/types' | ||
import { PositionRaysMultipliersType } from 'features/rays/types' | ||
|
||
export const getTimeOpenBoost = (positionRaysMultipliersData: PositionRaysMultipliersData) => | ||
positionRaysMultipliersData.position.find( | ||
(item) => item.type === PositionRaysMultipliersType.TIME_OPEN, | ||
)?.value || 1 |
Oops, something went wrong.