SYMBOL INDEX (744 symbols across 216 files) FILE: packages/frontend/cypress/integration/pages/header.js class Header (line 2) | class Header extends Page { method getConnectWalletBtn (line 3) | getConnectWalletBtn() { method getWalletAddress (line 6) | getWalletAddress() { FILE: packages/frontend/cypress/integration/pages/notifications.js class Notifications (line 2) | class Notifications extends Page { method getTransactionSuccessNotification (line 3) | getTransactionSuccessNotification() { method getTransactionSuccessNotificationLink (line 6) | getTransactionSuccessNotificationLink() { FILE: packages/frontend/cypress/integration/pages/onboard.js class Onboard (line 2) | class Onboard extends Page { method getBrowserWalletBtn (line 3) | getBrowserWalletBtn() { FILE: packages/frontend/cypress/integration/pages/page.js class Page (line 1) | class Page { method getTitle (line 2) | getTitle() { method getMetamaskWalletAddress (line 6) | getMetamaskWalletAddress() { method acceptMetamaskAccessRequest (line 10) | acceptMetamaskAccessRequest() { method confirmMetamaskTransaction (line 14) | confirmMetamaskTransaction() { method confirmMetamaskPermissionToSpend (line 20) | confirmMetamaskPermissionToSpend() { FILE: packages/frontend/cypress/integration/pages/trade.js class TradePage (line 6) | class TradePage extends Page { method constructor (line 7) | constructor() { method connectBrowserWallet (line 14) | connectBrowserWallet() { method getLoggedInWalletAddress (line 21) | getLoggedInWalletAddress() { method waitForTransactionSuccess (line 26) | waitForTransactionSuccess() { method getTransactionUrl (line 39) | getTransactionUrl() { FILE: packages/frontend/middleware.ts constant THIRTY_DAYS_IN_MS (line 12) | const THIRTY_DAYS_IN_MS = 30 * 24 * 60 * 60 * 1000 type RedisResponse (line 14) | interface RedisResponse { function isIPBlockedInRedis (line 19) | async function isIPBlockedInRedis(ip: string, currentTime: number) { function middleware (line 43) | async function middleware(request: NextRequest) { FILE: packages/frontend/next.config.js method rewrites (line 16) | async rewrites() { method headers (line 24) | async headers() { FILE: packages/frontend/pages/_app.tsx function MyApp (line 45) | function MyApp({ Component, pageProps }: any) { FILE: packages/frontend/pages/_document.tsx class MyDocument (line 5) | class MyDocument extends Document { method render (line 6) | render() { FILE: packages/frontend/pages/api/__tests__/isValidAddress.test.ts type APIRequest (line 12) | type APIRequest = NextApiResponse & ReturnType; type APIResponse (line 13) | type APIResponse = NextApiResponse & ReturnType; type isValidAddressResponse (line 15) | interface isValidAddressResponse { function mockRequestResponse (line 26) | function mockRequestResponse(method: RequestMethod = 'GET', address: str... FILE: packages/frontend/pages/api/auction/lastHedgeAuction.ts constant SQUEETH_PORTAL_API (line 4) | const SQUEETH_PORTAL_API = process.env.NEXT_PUBLIC_SQUEETH_PORTAL_BASE_URL FILE: packages/frontend/pages/api/charts/longchart.ts function handler (line 5) | async function handler(req: NextApiRequest, res: NextApiResponse) { function getETHSqueethPNLCompounding (line 42) | async function getETHSqueethPNLCompounding( FILE: packages/frontend/pages/api/currentsqueethvol.ts constant SQUEETH_VOL_API (line 4) | const SQUEETH_VOL_API = process.env.SQUEETH_VOL_API_BASE_URL FILE: packages/frontend/pages/api/historicalprice.ts constant TWELVE_DATA_API (line 4) | const TWELVE_DATA_API = 'https://api.twelvedata.com' FILE: packages/frontend/pages/api/pnl.tsx constant OMDB_BASE_URL (line 9) | const OMDB_BASE_URL = process.env.NEXT_PUBLIC_OMDB_BASE_URL as string constant CHART_WIDTH (line 35) | const CHART_WIDTH = 1000 constant CHART_HEIGHT (line 36) | const CHART_HEIGHT = 280 constant X_AXIS_WIDTH (line 38) | const X_AXIS_WIDTH = 5 constant Y_AXIS_WIDTH (line 39) | const Y_AXIS_WIDTH = 5 constant PADDING_X (line 41) | const PADDING_X = 3 constant PADDING_Y (line 42) | const PADDING_Y = 36 type StrategyType (line 44) | type StrategyType = 'crab' | 'zenbull' type PnLDataPoint (line 45) | type PnLDataPoint = [number, number] type UserPnlProps (line 46) | interface UserPnlProps { function handler (line 208) | async function handler(req: NextRequest) { FILE: packages/frontend/pages/api/twelvedata.ts constant TWELVE_DATA_API (line 4) | const TWELVE_DATA_API = 'https://api.twelvedata.com' FILE: packages/frontend/pages/index.tsx function LandingPage (line 9) | function LandingPage() { FILE: packages/frontend/pages/lp.tsx function LPCalculator (line 183) | function LPCalculator() { function LPage (line 245) | function LPage() { FILE: packages/frontend/pages/pos-merge.tsx function getStaticProps (line 14) | async function getStaticProps() { FILE: packages/frontend/pages/privacy-policy.tsx function MarkdownListItem (line 25) | function MarkdownListItem(props: any) { function getStaticProps (line 91) | async function getStaticProps() { FILE: packages/frontend/pages/share-pnl/[...slug].tsx type StrategyType (line 18) | type StrategyType = 'crab' | 'zenbull' type SharePnlProps (line 20) | interface SharePnlProps { FILE: packages/frontend/pages/squeeth.tsx function TradePage (line 212) | function TradePage() { FILE: packages/frontend/pages/strategies/index.tsx function getServerSideProps (line 18) | async function getServerSideProps() { FILE: packages/frontend/pages/terms-of-service-faq.tsx function getStaticProps (line 14) | async function getStaticProps() { FILE: packages/frontend/pages/terms-of-service.tsx function getStaticProps (line 14) | async function getStaticProps() { FILE: packages/frontend/pages/vault/[vid].tsx type VaultAction (line 337) | enum VaultAction { type VaultError (line 349) | enum VaultError { type VaultRedeemSectionProps (line 796) | interface VaultRedeemSectionProps { FILE: packages/frontend/src/components/Alert.tsx type AlertSeverity (line 6) | type AlertSeverity = 'warning' | 'error' | 'info' | 'success' type StylesProps (line 8) | interface StylesProps { type AlertCustomProps (line 31) | interface AlertCustomProps { type AlertProps (line 35) | type AlertProps = BoxProps & AlertCustomProps FILE: packages/frontend/src/components/Announcement.tsx constant ANNOUNCEMENT_KEY (line 5) | const ANNOUNCEMENT_KEY = 'DISABLE_MERGE_ANNOUNCEMENT' FILE: packages/frontend/src/components/Charts/BullStrategyPerformanceChart.tsx type ChartDataInfo (line 16) | type ChartDataInfo = { function BullStrategyPerformanceChart (line 56) | function BullStrategyPerformanceChart() { FILE: packages/frontend/src/components/Charts/CrabStrategyChart.tsx function CrabStrategyChart (line 87) | function CrabStrategyChart({ vault, longAmount }: { vault?: Vaults; long... FILE: packages/frontend/src/components/Charts/CrabStrategyV2PnLChart.tsx type ChartDataInfo (line 19) | type ChartDataInfo = { function CrabStrategyV2PnLChart (line 59) | function CrabStrategyV2PnLChart() { FILE: packages/frontend/src/components/Charts/LongChart.tsx type ChartType (line 28) | enum ChartType { function LongChart (line 123) | function LongChart() { FILE: packages/frontend/src/components/Charts/LongChartPayoff.tsx function LongChartPayoff (line 119) | function LongChartPayoff() { FILE: packages/frontend/src/components/Charts/ShortChart.tsx function ShortChart (line 64) | function ShortChart({ FILE: packages/frontend/src/components/Charts/VaultChart.tsx function VaultChart (line 66) | function VaultChart({ FILE: packages/frontend/src/components/Checkbox.tsx type CheckboxCustomProps (line 26) | interface CheckboxCustomProps { type CheckboxProps (line 33) | type CheckboxProps = MaterialCheckboxProps & CheckboxCustomProps FILE: packages/frontend/src/components/CollatRange.tsx type CollatRangeType (line 27) | type CollatRangeType = { FILE: packages/frontend/src/components/CollatRatioSlider.tsx constant HEALTH_CATEGORIES (line 6) | const HEALTH_CATEGORIES = { constant MARKS (line 33) | const MARKS = [ type ValueLabelStylePropsType (line 90) | interface ValueLabelStylePropsType { function ValueLabelComponent (line 119) | function ValueLabelComponent(props: any) { type CollatRatioSliderPropsType (line 145) | interface CollatRatioSliderPropsType { FILE: packages/frontend/src/components/CustomSwitch.tsx type SwitchItem (line 29) | type SwitchItem = { type CustomSwitchType (line 36) | type CustomSwitchType = { FILE: packages/frontend/src/components/Input/NumberInput.tsx type NumberInputType (line 80) | type NumberInputType = { FILE: packages/frontend/src/components/Input/PrimaryInput.tsx type PrimaryInputType (line 79) | type PrimaryInputType = { FILE: packages/frontend/src/components/InputNew/InputBase.tsx type InputBaseCustomProps (line 37) | interface InputBaseCustomProps { type InputBaseProps (line 41) | type InputBaseProps = StandardTextFieldProps & InputBaseCustomProps FILE: packages/frontend/src/components/InputNew/InputNumber.tsx constant DECIMAL_REGEX (line 4) | const DECIMAL_REGEX = RegExp('^[0-9]*[.]{1}[0-9]*$') type InputNumberCustomProps (line 6) | interface InputNumberCustomProps extends InputBaseProps { type InputNumberProps (line 9) | type InputNumberProps = InputNumberCustomProps FILE: packages/frontend/src/components/InputNew/InputToken.tsx type InputTokenProps (line 65) | interface InputTokenProps extends InputNumberProps { FILE: packages/frontend/src/components/LabelWithTooltip.tsx type Props (line 5) | interface Props extends BoxProps { FILE: packages/frontend/src/components/LandingPage/DesktopLandingPage.tsx function DesktopLandingPage (line 317) | function DesktopLandingPage() { FILE: packages/frontend/src/components/LandingPage/MobileLandingPage.tsx function MobileLandingPage (line 318) | function MobileLandingPage() { FILE: packages/frontend/src/components/LegendBox.tsx type LegendBoxType (line 14) | type LegendBoxType = { FILE: packages/frontend/src/components/LinkWrapper.tsx type LinkWrapperProps (line 19) | interface LinkWrapperProps { FILE: packages/frontend/src/components/Lp/LPTable.tsx type LPTableProps (line 75) | interface LPTableProps { FILE: packages/frontend/src/components/MarkdownPage.tsx function MarkdownListItem (line 23) | function MarkdownListItem(props: any) { type Props (line 74) | interface Props { function MarkdownPage (line 78) | function MarkdownPage({ markdown }: Props) { FILE: packages/frontend/src/components/Metric.tsx type StyleProps (line 7) | interface StyleProps { type MetricProps (line 40) | interface MetricProps { type MetricLabelProps (line 83) | interface MetricLabelProps { FILE: packages/frontend/src/components/Modal/MobileModal.tsx type MobileModalType (line 37) | type MobileModalType = { FILE: packages/frontend/src/components/Modal/Modal.tsx type ModalProps (line 32) | interface ModalProps { FILE: packages/frontend/src/components/Modal/UniswapIframe.tsx type UniswapIframeProps (line 75) | interface UniswapIframeProps { FILE: packages/frontend/src/components/PnLTooltip.tsx type PnLTooltipProps (line 17) | interface PnLTooltipProps { FILE: packages/frontend/src/components/Popup.tsx type PopupType (line 41) | type PopupType = { FILE: packages/frontend/src/components/RestrictionInfo.tsx type RestrictionInfoProps (line 32) | type RestrictionInfoProps = BoxProps & { withdrawAllowed?: boolean } FILE: packages/frontend/src/components/SharePnl/PnlChart.tsx type StrategyType (line 11) | type StrategyType = 'crab' | 'zenbull' FILE: packages/frontend/src/components/StepperBox.tsx type StepperBoxProps (line 16) | type StepperBoxProps = { FILE: packages/frontend/src/components/Strategies/Bull/About/ProfitabilityChart.tsx type CustomTooltipCustomProps (line 43) | interface CustomTooltipCustomProps { type CustomTooltipProps (line 46) | type CustomTooltipProps = TooltipProps & CustomTooltipCustomProps function getStrategyReturn (line 99) | function getStrategyReturn(funding: number, ethReturn: number) { function ChartWrapper (line 308) | function ChartWrapper() { FILE: packages/frontend/src/components/Strategies/Bull/BullTrade/EmergencyWithdraw.tsx type Step (line 79) | enum Step { FILE: packages/frontend/src/components/Strategies/Bull/BullTrade/ShutdownEmergencyWithdraw.tsx type Callback (line 25) | type Callback = () => void type ShutdownEmergencyWithdrawProps (line 27) | interface ShutdownEmergencyWithdrawProps { FILE: packages/frontend/src/components/Strategies/Bull/BullTrade/index.tsx type BullTradeType (line 12) | enum BullTradeType { type BullTransactionConfirmation (line 18) | interface BullTransactionConfirmation { FILE: packages/frontend/src/components/Strategies/Bull/MyPosition/PnL.tsx type PnLProps (line 11) | interface PnLProps { FILE: packages/frontend/src/components/Strategies/Bull/StrategyPerformance.tsx type ChartDataInfo (line 54) | type ChartDataInfo = { type StrategyPerformanceProps (line 114) | interface StrategyPerformanceProps { FILE: packages/frontend/src/components/Strategies/Crab/About/ProfitabilityChart.tsx function getStrategyReturn (line 92) | function getStrategyReturn(funding: number, ethReturn: number) { function ChartWrapper (line 301) | function ChartWrapper() { FILE: packages/frontend/src/components/Strategies/Crab/CapDetails.tsx type CapType (line 25) | type CapType = { FILE: packages/frontend/src/components/Strategies/Crab/CapDetailsV2.tsx type CapType (line 27) | type CapType = { FILE: packages/frontend/src/components/Strategies/Crab/CrabMigrate.tsx type MIGRATION_STEP (line 48) | enum MIGRATION_STEP { FILE: packages/frontend/src/components/Strategies/Crab/CrabTrade.tsx type CrabTradeType (line 72) | type CrabTradeType = { FILE: packages/frontend/src/components/Strategies/Crab/CrabTradeV2/Deposit.tsx type CrabDepositProps (line 63) | type CrabDepositProps = { type DepositSteps (line 67) | enum DepositSteps { constant OTC_PRICE_IMPACT_THRESHOLD (line 72) | const OTC_PRICE_IMPACT_THRESHOLD = Number(process.env.NEXT_PUBLIC_OTC_PR... FILE: packages/frontend/src/components/Strategies/Crab/CrabTradeV2/Withdraw.tsx type RedeemStepsV1 (line 33) | enum RedeemStepsV1 { type RedeemStepsV2 (line 38) | enum RedeemStepsV2 { FILE: packages/frontend/src/components/Strategies/Crab/CrabTradeV2/types.ts type CrabTradeType (line 3) | enum CrabTradeType { type CrabTradeTransactionType (line 9) | enum CrabTradeTransactionType { type CrabTransactionConfirmation (line 14) | interface CrabTransactionConfirmation { type OngoingTransaction (line 23) | interface OngoingTransaction { FILE: packages/frontend/src/components/Strategies/Crab/MyPosition/CrabPosition.tsx type CrabPositionProps (line 11) | interface CrabPositionProps { FILE: packages/frontend/src/components/Strategies/Crab/MyPosition/PnL.tsx type PnLProps (line 11) | interface PnLProps { FILE: packages/frontend/src/components/Strategies/Crab/StrategyChartsV2.tsx type ChartType (line 9) | enum ChartType { function StrategyChartsV2 (line 43) | function StrategyChartsV2() { FILE: packages/frontend/src/components/Strategies/Crab/StrategyHistory.tsx type TxType (line 52) | enum TxType { FILE: packages/frontend/src/components/Strategies/Crab/StrategyPerformance.tsx type ChartDataInfo (line 51) | type ChartDataInfo = { type StrategyPerformanceProps (line 111) | interface StrategyPerformanceProps { FILE: packages/frontend/src/components/Strategies/SharePnl.tsx type SharePnlProps (line 36) | interface SharePnlProps { FILE: packages/frontend/src/components/Strategies/StrategyInfoItem.tsx type StrategyProps (line 39) | type StrategyProps = { FILE: packages/frontend/src/components/StrategyLayout/StrategyLayout.tsx constant STRATEGIES_PATH (line 86) | const STRATEGIES_PATH = '/strategies' constant CRAB_PATH (line 88) | const CRAB_PATH = `${STRATEGIES_PATH}/crab` constant BULL_PATH (line 89) | const BULL_PATH = `${STRATEGIES_PATH}/bull` constant BEAR_PATH (line 90) | const BEAR_PATH = `${STRATEGIES_PATH}/bear` type StrategyImageProps (line 110) | interface StrategyImageProps { FILE: packages/frontend/src/components/StrikeWarning.tsx type StrikeWarningModalProps (line 11) | interface StrikeWarningModalProps { type StrikeCountModalProps (line 41) | interface StrikeCountModalProps { function StrikeModalManager (line 89) | function StrikeModalManager() { FILE: packages/frontend/src/components/Trade/Cancelled.tsx type ConfirmedProps (line 52) | type ConfirmedProps = { FILE: packages/frontend/src/components/Trade/Confirmed.tsx type ConfirmType (line 107) | enum ConfirmType { type ConfirmedProps (line 113) | type ConfirmedProps = { FILE: packages/frontend/src/components/Trade/Long/index.tsx type BuyProps (line 522) | type BuyProps = { FILE: packages/frontend/src/components/Trade/Mint.tsx type MintProps (line 54) | interface MintProps { FILE: packages/frontend/src/components/Trade/Short/index.tsx type SellType (line 567) | type SellType = { FILE: packages/frontend/src/components/TradeOld/Cancelled.tsx type ConfirmedProps (line 49) | type ConfirmedProps = { FILE: packages/frontend/src/components/TradeOld/Confirmed.tsx type ConfirmType (line 50) | enum ConfirmType { type ConfirmedProps (line 55) | type ConfirmedProps = { FILE: packages/frontend/src/components/TradeOld/Long/index.tsx constant FUNDING_MOVE_THRESHOLD (line 249) | const FUNDING_MOVE_THRESHOLD = 1.3 type BuyProps (line 983) | type BuyProps = { FILE: packages/frontend/src/components/TradeOld/TradeDetails.tsx type TradeDetailsType (line 5) | type TradeDetailsType = { FILE: packages/frontend/src/components/TradeOld/TradeInfoItem.tsx type tradeType (line 53) | type tradeType = { FILE: packages/frontend/src/components/TradeOld/UniswapData.tsx type UniswapDataType (line 15) | type UniswapDataType = { FILE: packages/frontend/src/components/TradeSettings.tsx type TradeSettingsProps (line 47) | type TradeSettingsProps = { FILE: packages/frontend/src/components/WalletFailModal.tsx function WalletFailModal (line 6) | function WalletFailModal() { FILE: packages/frontend/src/constants/address.ts type Address (line 3) | type Address = { [key in Networks]: string } constant CONTROLLER (line 5) | const CONTROLLER: Address = { constant VAULT_MANAGER (line 15) | const VAULT_MANAGER: Address = { constant OSQUEETH (line 25) | const OSQUEETH: Address = { constant WETH (line 34) | const WETH: Address = { constant USDC (line 43) | const USDC: Address = { constant UNI_V3_FACTORY (line 52) | const UNI_V3_FACTORY: Address = { constant SWAP_ROUTER (line 61) | const SWAP_ROUTER: Address = { constant SWAP_ROUTER_02 (line 71) | const SWAP_ROUTER_02: Address = { constant SQUEETH_UNI_POOL (line 80) | const SQUEETH_UNI_POOL: Address = { constant QUOTER (line 89) | const QUOTER: Address = { constant SHORT_HELPER (line 98) | const SHORT_HELPER: Address = { constant ORACLE (line 107) | const ORACLE: Address = { constant ETH_USDC_POOL (line 116) | const ETH_USDC_POOL: Address = { constant NFT_MANAGER (line 125) | const NFT_MANAGER: Address = { constant CRAB_STRATEGY (line 134) | const CRAB_STRATEGY: Address = { constant CRAB_MIGRATION (line 143) | const CRAB_MIGRATION: Address = { constant CRAB_STRATEGY2 (line 152) | const CRAB_STRATEGY2: Address = { constant ZERO_ADDR (line 161) | const ZERO_ADDR = '0x0000000000000000000000000000000000000000' constant CONTROLLER_HELPER (line 163) | const CONTROLLER_HELPER: Address = { constant CRAB_HELPER (line 172) | const CRAB_HELPER: Address = { constant CRAB_NETTING (line 181) | const CRAB_NETTING: Address = { constant FLASH_BULL_STRATEGY (line 190) | const FLASH_BULL_STRATEGY: Address = { constant BULL_STRATEGY (line 199) | const BULL_STRATEGY: Address = { constant WETH_E_TOKEN (line 208) | const WETH_E_TOKEN: Address = { constant USDC_D_TOKEN (line 217) | const USDC_D_TOKEN: Address = { constant AUCTION_BULL (line 226) | const AUCTION_BULL: Address = { constant EULER_SIMPLE_LENS (line 235) | const EULER_SIMPLE_LENS: Address = { constant BULL_EMERGENCY_WITHDRAW (line 244) | const BULL_EMERGENCY_WITHDRAW: Address = { constant BULL_SHUTDOWN_EMERGENCY_WITHDRAW (line 253) | const BULL_SHUTDOWN_EMERGENCY_WITHDRAW: Address = { FILE: packages/frontend/src/constants/enums.ts type TradeMode (line 3) | enum TradeMode { type Vaults (line 8) | enum Vaults { type VaultSubtitle (line 16) | enum VaultSubtitle { type TransactionType (line 22) | enum TransactionType { type CloseType (line 41) | enum CloseType { type InputType (line 46) | enum InputType { type Tooltips (line 51) | enum Tooltips { type Links (line 103) | enum Links { type Action (line 129) | enum Action { FILE: packages/frontend/src/constants/index.ts constant UNI_POOL_FEES (line 6) | const UNI_POOL_FEES = 3000 constant ETH_USDC_POOL_FEES (line 7) | const ETH_USDC_POOL_FEES = 500 constant REVERTED_TRANSACTION_CODE (line 9) | const REVERTED_TRANSACTION_CODE = 4001 constant FUNDING_PERIOD (line 12) | const FUNDING_PERIOD = 17.5 constant DEFAULT_SLIPPAGE (line 14) | const DEFAULT_SLIPPAGE = 0.25 constant MIN_COLLATERAL_AMOUNT (line 16) | const MIN_COLLATERAL_AMOUNT = 6.9 constant MIN_COLLATERAL_RATIO (line 18) | const MIN_COLLATERAL_RATIO = 150 constant DEFAULT_COLLATERAL_RATIO (line 20) | const DEFAULT_COLLATERAL_RATIO = 225 constant YEAR (line 22) | const YEAR = 365 constant VOL_PERCENT_FIXED (line 24) | const VOL_PERCENT_FIXED = 0.1 constant VOL_PERCENT_SCALAR (line 26) | const VOL_PERCENT_SCALAR = 0.1 constant AVERAGE_AUCTION_PRICE_IMPACT (line 28) | const AVERAGE_AUCTION_PRICE_IMPACT = 0.79 constant NETTING_PRICE_IMPACT (line 30) | const NETTING_PRICE_IMPACT = 0.2 constant TWAP_PERIOD (line 33) | const TWAP_PERIOD = 420 constant SHUTDOWN_DATE (line 35) | const SHUTDOWN_DATE = '2024-11-04T16:00:00Z' constant INDEX_SCALE (line 45) | const INDEX_SCALE = 10000 constant OSQUEETH_DECIMALS (line 46) | const OSQUEETH_DECIMALS = 18 constant WETH_DECIMALS (line 47) | const WETH_DECIMALS = 18 constant USDC_DECIMALS (line 48) | const USDC_DECIMALS = 6 constant CRAB_TOKEN_DECIMALS (line 49) | const CRAB_TOKEN_DECIMALS = 18 constant BULL_TOKEN_DECIMALS (line 50) | const BULL_TOKEN_DECIMALS = 18 constant SWAP_EVENT_TOPIC (line 52) | const SWAP_EVENT_TOPIC = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb... constant BIG_ZERO (line 54) | const BIG_ZERO = new BigNumber(0) constant BIG_ONE (line 55) | const BIG_ONE = new BigNumber(10).pow(18) constant TWELVEDATA_NO_PRICEDATA_DURATION (line 56) | const TWELVEDATA_NO_PRICEDATA_DURATION = 62 constant BLOCKED_COUNTRIES (line 57) | const BLOCKED_COUNTRIES = [ constant ALLOW_WITHDRAWALS (line 74) | const ALLOW_WITHDRAWALS = ['CA'] constant BLOCKED_IP_VALUE (line 76) | const BLOCKED_IP_VALUE = 'BLOCKED' constant V2_MIGRATION_ETH_PRICE (line 79) | const V2_MIGRATION_ETH_PRICE = 1611.71 constant V2_MIGRATION_OSQTH_PRICE (line 80) | const V2_MIGRATION_OSQTH_PRICE = 0.0897 constant V2_MIGRATION_ETH_AMOUNT (line 81) | const V2_MIGRATION_ETH_AMOUNT = 790.186510787310292814 constant V2_MIGRATION_OSQTH_AMOUNT (line 82) | const V2_MIGRATION_OSQTH_AMOUNT = 4604.57349514942255453 constant V2_MIGRATION_SUPPLY (line 83) | const V2_MIGRATION_SUPPLY = 519.994374902152348633 constant CRABV2_START_DATE (line 86) | const CRABV2_START_DATE = '2022-07-28' constant BULL_START_DATE (line 87) | const BULL_START_DATE = '2022-12-19' constant ZERO_ADDRESS (line 89) | const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000' constant STRATEGY_DEPOSIT_LIMIT (line 91) | const STRATEGY_DEPOSIT_LIMIT = 1000_000 constant SQUEETH_BASE_URL (line 92) | const SQUEETH_BASE_URL = 'https://squeeth.opyn.co' constant TOS_UPDATE_DATE (line 98) | const TOS_UPDATE_DATE = '2023-04-21' constant LEGAL_PAGES (line 100) | const LEGAL_PAGES = ['/terms-of-service', '/privacy-policy'] FILE: packages/frontend/src/context/lp.tsx type Steps (line 9) | enum Steps { type OBTAIN_METHOD (line 15) | enum OBTAIN_METHOD { type LPType (line 20) | type LPType = { type LPContextType (line 28) | type LPContextType = { type LPActions (line 41) | enum LPActions { type ActionType (line 48) | type ActionType = { FILE: packages/frontend/src/context/restrict-user.tsx type restrictUserContextType (line 9) | type restrictUserContextType = { FILE: packages/frontend/src/hooks/contracts/useAllowance.ts constant MAX_UINT (line 12) | const MAX_UINT = '0xffffffffffffffffffffffffffffffffffffffffffffffffffff... function useUserAllowance (line 14) | function useUserAllowance(token: string, spenderAddess: string | null, d... FILE: packages/frontend/src/hooks/contracts/useTokenBalance.ts type Callback (line 12) | type Callback = (newBalance: BigNumber) => void type TokenQueryKeyParams (line 14) | interface TokenQueryKeyParams { function updateBalance (line 80) | async function updateBalance( FILE: packages/frontend/src/hooks/contracts/useVaultManager.ts method updateQuery (line 71) | updateQuery(prev, { subscriptionData }) { FILE: packages/frontend/src/hooks/payOffGraph/useCrabVaultPayoff.ts function useCrabVaultPayoff (line 3) | function useCrabVaultPayoff(ethPrice: number, collatRatio: number) { FILE: packages/frontend/src/hooks/payOffGraph/useShortParams.ts function useShortParams (line 4) | function useShortParams(ethPrice: number, collatRatio: number) { FILE: packages/frontend/src/hooks/payOffGraph/useSqueethShortPayOffGraph.ts function useSqueethShortPayOffGraph (line 3) | function useSqueethShortPayOffGraph(ethPrice: number, collatRatio: numbe... FILE: packages/frontend/src/hooks/useAppCallback.tsx function useAppCallback (line 5) | function useAppCallback any>( FILE: packages/frontend/src/hooks/useAppEffect.tsx function useAppEffect (line 6) | function useAppEffect(effect: EffectCallback, deps?: DependencyList, len... FILE: packages/frontend/src/hooks/useAppMemo.tsx function useAppMemo (line 5) | function useAppMemo(factory: () => T, deps?: DependencyList, lengthAs... FILE: packages/frontend/src/hooks/useAsyncMemo.tsx function useAsyncMemo (line 3) | function useAsyncMemo( FILE: packages/frontend/src/hooks/useCopyClipboard.ts function useCopyClipboard (line 4) | function useCopyClipboard(timeout = 500): [boolean, (toCopy: string) => ... FILE: packages/frontend/src/hooks/useENS.ts function useENS (line 6) | function useENS(address: string | null | undefined) { FILE: packages/frontend/src/hooks/useETHPrice.ts method onError (line 24) | onError() { FILE: packages/frontend/src/hooks/useInterval.ts type Callback (line 3) | type Callback = () => void function useInterval (line 5) | function useInterval(callback: Callback, delay: number) { FILE: packages/frontend/src/hooks/useIntervalAsync.ts type Callback (line 4) | type Callback = () => void function useIntervalAsync (line 12) | function useIntervalAsync(callback: Callback, interval: number) { FILE: packages/frontend/src/hooks/usePopup.tsx type PopupAction (line 59) | interface PopupAction { type PopupConfig (line 67) | interface PopupConfig { type PopupProps (line 73) | interface PopupProps extends PopupConfig { FILE: packages/frontend/src/hooks/useRenderCounter.js function getDisplayName (line 5) | function getDisplayName(type) { function useRenderCounter (line 40) | function useRenderCounter(logRenderCountKey, resetRenderCountKey) { FILE: packages/frontend/src/hooks/useTVL.ts function useTVL (line 3) | function useTVL() { FILE: packages/frontend/src/hooks/useVaultData.ts type IVault (line 9) | interface IVault { FILE: packages/frontend/src/hooks/useVaultHistory.ts method updateQuery (line 63) | updateQuery(prev, { subscriptionData }) { FILE: packages/frontend/src/hooks/useYourVaults.ts function useYourVaults (line 8) | function useYourVaults(options?: QueryHookOptions { function isVPN (line 65) | async function isVPN(ipAddress: string): Promise { FILE: packages/frontend/src/state/controller/utils.ts type UnivariateFunction (line 70) | type UnivariateFunction = (x: number) => number function getVault (line 153) | async function getVault(vaultId: number, contract: Contract | null): Pro... function getIndex (line 167) | async function getIndex(period: number, contract: Contract | null) { function getMark (line 174) | async function getMark(period: number, contract: Contract | null) { function getNormFactor (line 180) | async function getNormFactor(contract: Contract | null) { function getDailyHistoricalFunding (line 188) | async function getDailyHistoricalFunding(contract: Contract | null) { function getCurrentImpliedFunding (line 224) | async function getCurrentImpliedFunding(contract: Contract | null) { function getCurrentImpliedFundingShutdown (line 238) | async function getCurrentImpliedFundingShutdown(contract: Contract | nul... function getImpliedVolatilityShutdown (line 265) | async function getImpliedVolatilityShutdown(contract: Contract | null) { function getDailyHistoricalFundingShutdown (line 285) | async function getDailyHistoricalFundingShutdown(contract: Contract | nu... function getOsqthRefVol (line 333) | async function getOsqthRefVol() { FILE: packages/frontend/src/state/ethPriceCharts/atoms.ts constant FIVE_MINUTES_IN_MILLISECONDS (line 21) | const FIVE_MINUTES_IN_MILLISECONDS = 300_000 constant STRATEGIES_LAUNCH_TIME_STAMP (line 22) | const STRATEGIES_LAUNCH_TIME_STAMP = 1642636810000 FILE: packages/frontend/src/state/lp/hooks.ts constant COLLAT_RATIO_FLASHLOAN (line 24) | const COLLAT_RATIO_FLASHLOAN = 2 constant POOL_FEE (line 25) | const POOL_FEE = 3000 constant MAX_INT_128 (line 26) | const MAX_INT_128 = new BigNumber(2).pow(128).minus(1).toFixed(0) constant FLASHLOAN_BUFFER (line 28) | const FLASHLOAN_BUFFER = 0.02 function getPoolState (line 329) | async function getPoolState(poolContract: Contract) { FILE: packages/frontend/src/state/pnl/hooks.ts function useEthCollateralPnl (line 34) | function useEthCollateralPnl() { function useBuyAndSellQuote (line 77) | function useBuyAndSellQuote() { function useCurrentLongPositionValue (line 98) | function useCurrentLongPositionValue() { function useCurrentShortPositionValue (line 117) | function useCurrentShortPositionValue() { function useLongGain (line 137) | function useLongGain() { function useShortGain (line 160) | function useShortGain() { function useLongUnrealizedPNL (line 181) | function useLongUnrealizedPNL() { function useShortUnrealizedPNL (line 220) | function useShortUnrealizedPNL() { FILE: packages/frontend/src/state/positions/hooks.ts method updateQuery (line 89) | updateQuery(prev, { subscriptionData }) { method updateQuery (line 225) | updateQuery(prev, { subscriptionData }) { constant MAX_UNIT (line 238) | const MAX_UNIT = '0xffffffffffffffffffffffffffffffff' FILE: packages/frontend/src/state/positions/providers.tsx type ComputeSwapsContextValue (line 14) | interface ComputeSwapsContextValue { FILE: packages/frontend/src/state/squeethPool/hooks.ts function getPoolInfo (line 798) | function getPoolInfo(route: SwapRoute, overallInputAmount: BigNumber) { FILE: packages/frontend/src/state/squeethPool/price.ts constant BIPS_BASE (line 7) | const BIPS_BASE = JSBI.BigInt(10000) constant ALLOWED_PRICE_IMPACT_HIGH (line 8) | const ALLOWED_PRICE_IMPACT_HIGH = new Percent(JSBI.BigInt(500), BIPS_BAS... constant ALLOWED_PRICE_IMPACT_LOW (line 9) | const ALLOWED_PRICE_IMPACT_LOW = new Percent(JSBI.BigInt(100), BIPS_BASE... constant ALLOWED_PRICE_IMPACT_MEDIUM (line 10) | const ALLOWED_PRICE_IMPACT_MEDIUM = new Percent(JSBI.BigInt(500), BIPS_B... constant BLOCKED_PRICE_IMPACT_NON_EXPERT (line 11) | const BLOCKED_PRICE_IMPACT_NON_EXPERT = new Percent(JSBI.BigInt(1500), B... constant ONE_HUNDRED_PERCENT (line 12) | const ONE_HUNDRED_PERCENT = new Percent('1') constant ZERO_PERCENT (line 13) | const ZERO_PERCENT = new Percent('0') constant THIRTY_BIPS_FEE (line 15) | const THIRTY_BIPS_FEE = new Percent(JSBI.BigInt(30), JSBI.BigInt(10000)) constant INPUT_FRACTION_AFTER_FEE (line 16) | const INPUT_FRACTION_AFTER_FEE = ONE_HUNDRED_PERCENT.subtract(THIRTY_BIP... function computeRealizedPriceImpact (line 18) | function computeRealizedPriceImpact(trade: Trade { function getLiveVolMap (line 324) | async function getLiveVolMap(): Promise<{ [key: string]: number }> { function updateTimestampVolDB (line 337) | async function updateTimestampVolDB(timestamp: number, vol: number): Pro... function updateTimestampLiveVolDB (line 356) | async function updateTimestampLiveVolDB(timestamp: number, vol: number):... function getVolForTimestampFromTardis (line 371) | async function getVolForTimestampFromTardis(timestamp: number, ethPrice:... function instrumentNameToStrike (line 412) | function instrumentNameToStrike(optionName: string) { function calculateMinCollatReq (line 422) | function calculateMinCollatReq(shortAmount: number, _vol: number, _ethPr... function calculateLiquidationPrice (line 433) | function calculateLiquidationPrice( function getEthPrices (line 443) | function getEthPrices(startPrice: number, step: number, length: number) { function getSqueethLongPayOffGraph (line 455) | function getSqueethLongPayOffGraph(ethPrice: number) { function getBuyAndLPPayOffGraph (line 516) | function getBuyAndLPPayOffGraph(ethPrice: number) { function getMintAndLpPayoffGraph (line 557) | function getMintAndLpPayoffGraph(ethPrice: number) { FILE: packages/frontend/src/utils/stringifyDeps.ts function stringifyDeps (line 4) | function stringifyDeps(deps?: DependencyList, lengthAsArrDep?: boolean) { FILE: packages/frontend/types/global_apollo.ts type Action (line 10) | enum Action { FILE: packages/hardhat/hardhat.config.ts function mnemonic (line 44) | function mnemonic() { constant UNISWAP_SETTING (line 57) | const UNISWAP_SETTING = { FILE: packages/hardhat/scripts/deploy.js function sleep (line 163) | function sleep(ms) { FILE: packages/hardhat/scripts/docs/docify.js constant NODE_DIR (line 1) | const NODE_DIR = "node_modules"; constant INPUT_DIR (line 2) | const INPUT_DIR = "contracts"; constant CONFIG_DIR (line 3) | const CONFIG_DIR = "docs"; constant OUTPUT_DIR (line 4) | const OUTPUT_DIR = "docs/contracts-documentation"; constant README_FILE (line 5) | const README_FILE = "README.md"; constant SUMMARY_FILE (line 6) | const SUMMARY_FILE = "SUMMARY.md"; constant EXCLUDE_LIST (line 7) | const EXCLUDE_LIST = ["packages", "interfaces", "mocks", "test", "extern... function exclude (line 15) | function exclude(pathName) { function scan (line 24) | function scan(pathName, indentation) { function fix (line 39) | function fix(pathName) { FILE: packages/hardhat/scripts/publish.js function publishContract (line 9) | function publishContract(contractName, networkName) { function main (line 64) | async function main() { FILE: packages/hardhat/tasks/default.ts constant DEBUG (line 13) | const DEBUG = false; function debug (line 15) | function debug(text: any) { function addr (line 183) | async function addr(ethers: any, addr: string) { function send (line 211) | function send(signer: any, txparams: any) { FILE: packages/hardhat/test/calculator.ts function convertPriceToSqrtX96 (line 4) | function convertPriceToSqrtX96 (sqrtPriceX96: string) { function convertRawPriceToSqrtX96 (line 28) | function convertRawPriceToSqrtX96 (rawPrice: BigNumber) { function convertToken1PriceToSqrtX96Price (line 33) | function convertToken1PriceToSqrtX96Price(token1PriceInToken0: string) { function convertToken0PriceToSqrtX96Price (line 38) | function convertToken0PriceToSqrtX96Price(token1PriceInToken0: string) { function getTickFromToken0Price (line 43) | function getTickFromToken0Price(price: string) { function getTickFromNormalPrice (line 47) | function getTickFromNormalPrice(price: string) { function log1_0001 (line 51) | function log1_0001(num: number) { // eslint-disable-line function getSqrtPriceAndTickBySqueethPrice (line 55) | function getSqrtPriceAndTickBySqueethPrice(price1e18: string|BigNumberis... function getYAmountAboveRange (line 65) | function getYAmountAboveRange (pa:number, pb: number, liquidity: string) { function getXAmountBelowRange (line 71) | function getXAmountBelowRange (pa:number, pb: number, liquidity: string) { function tickToPrice1e18 (line 77) | function tickToPrice1e18(tick: number) { FILE: packages/hardhat/test/integration-tests/liquidation.ts constant TICK_SPACE (line 11) | const TICK_SPACE = 60 FILE: packages/hardhat/test/integration-tests/uni-position-collateral.ts constant TICK_SPACE (line 11) | const TICK_SPACE = 60 FILE: packages/hardhat/test/setup.ts function delay (line 330) | function delay(ms: number) { FILE: packages/hardhat/test/unit-tests/controller-funding.ts function getNormFactorMultiplier (line 482) | function getNormFactorMultiplier(mark: BigNumber, index:BigNumber, secon... FILE: packages/hardhat/test/utils.ts type Vault (line 9) | type Vault = [BigNumber, BigNumber, BigNumber] & { constant UNDERFLOW_ERROR (line 31) | const UNDERFLOW_ERROR = FILE: packages/hardhat/test/vault-utils.ts type Vault (line 3) | type Vault = [string, number, BigNumber, BigNumber] & { constant UNDERFLOW_ERROR (line 15) | const UNDERFLOW_ERROR = "reverted with panic code 0x11 (Arithmetic opera... FILE: packages/subgraph/src/bullStrategy.ts function loadOrCreateTx (line 44) | function loadOrCreateTx(id: string): BullUserTxSchema { function handleWithdraw (line 62) | function handleWithdraw(event: Withdraw): void { function handleSetCap (line 77) | function handleSetCap(event: SetCap): void { function handleDeposit (line 85) | function handleDeposit(event: Deposit): void { function handleSetStrategyCap (line 98) | function handleSetStrategyCap(event: SetCap): void { function handleSetAuction (line 105) | function handleSetAuction(event: SetAuction): void { function handleRedeemCrabAndWithdrawEth (line 113) | function handleRedeemCrabAndWithdrawEth(event: RedeemCrabAndWithdrawEth)... function handleSetShutdownContract (line 125) | function handleSetShutdownContract(event: SetShutdownContract): void { function handleShutdownRepayAndWithdraw (line 133) | function handleShutdownRepayAndWithdraw(event: ShutdownRepayAndWithdraw)... function handleFarm (line 145) | function handleFarm(event: Farm): void { function handleDepositEthIntoCrab (line 152) | function handleDepositEthIntoCrab(event: DepositEthIntoCrab): void { function handleWithdrawShutdown (line 162) | function handleWithdrawShutdown(event: WithdrawShutdown): void { function handleAuctionRepayAndWithdrawFromLeverage (line 173) | function handleAuctionRepayAndWithdrawFromLeverage(event: AuctionRepayAn... function handleSetCrUpperAndLower (line 185) | function handleSetCrUpperAndLower(event: SetCrUpperAndLower): void { function handleSetDeltaUpperAndLower (line 194) | function handleSetDeltaUpperAndLower(event: SetDeltaUpperAndLower): void { function handleLeverageRebalance (line 203) | function handleLeverageRebalance(event: LeverageRebalance): void { function handleSetFullRebalanceClearingPriceTolerance (line 217) | function handleSetFullRebalanceClearingPriceTolerance(event: SetFullReba... function handleSetRebalanceWethLimitPriceTolerance (line 224) | function handleSetRebalanceWethLimitPriceTolerance(event: SetRebalanceWe... function handleSetAuctionManager (line 231) | function handleSetAuctionManager(event: SetAuctionManager): void { function handleFullRebalance (line 239) | function handleFullRebalance(event: FullRebalance): void { function handleFlashDeposit (line 255) | function handleFlashDeposit(event: FlashDeposit): void { function handleFlashWithdraw (line 268) | function handleFlashWithdraw(event: FlashWithdraw): void { function handleTransfer (line 279) | function handleTransfer(event: Transfer): void { function findFlashBullEthDeposited (line 285) | function findFlashBullEthDeposited(event: FlashDeposit): BigInt { FILE: packages/subgraph/src/constants.ts constant BIGINT_ONE (line 4) | const BIGINT_ONE = BigInt.fromI32(1); constant BIGINT_ZERO (line 5) | const BIGINT_ZERO = BigInt.fromI32(0); constant EMPTY_ADDR (line 6) | const EMPTY_ADDR = Address.empty(); constant MAINNET_SHORT_HELPER_ADDR (line 8) | const MAINNET_SHORT_HELPER_ADDR = Address.fromString( constant MAINNET_CRAB_V2_ADDR (line 11) | const MAINNET_CRAB_V2_ADDR = Address.fromString( constant MAINNET_CRAB_MIGRATION_ADDR (line 14) | const MAINNET_CRAB_MIGRATION_ADDR = Address.fromString( constant MAINNET_CRAB_V1_ADDR (line 17) | const MAINNET_CRAB_V1_ADDR = Address.fromString( constant MAINNET_FLASH_BULL_ADDR (line 20) | const MAINNET_FLASH_BULL_ADDR = Address.fromString( constant MAINNET_BULL_STRATEGY_ADDR (line 23) | const MAINNET_BULL_STRATEGY_ADDR = Address.fromString( constant MAINNET_AUCTION_BULL_ADDR (line 26) | const MAINNET_AUCTION_BULL_ADDR = Address.fromString( constant MAINNET_WETH_ADDR (line 30) | const MAINNET_WETH_ADDR = Address.fromString( constant ROPSTEN_SHORT_HELPER_ADDR (line 34) | const ROPSTEN_SHORT_HELPER_ADDR = Address.fromString( constant ROPSTEN_CRAB_V2_ADDR (line 37) | const ROPSTEN_CRAB_V2_ADDR = Address.fromString( constant ROPSTEN_CRAB_MIGRATION_ADDR (line 40) | const ROPSTEN_CRAB_MIGRATION_ADDR = Address.fromString( constant ROPSTEN_CRAB_V1_ADDR (line 43) | const ROPSTEN_CRAB_V1_ADDR = Address.fromString( constant LOCALHOST_SHORT_HELPER_ADDR (line 47) | const LOCALHOST_SHORT_HELPER_ADDR = Address.fromString( constant RA_SHORT_HELPER_ADDR (line 51) | const RA_SHORT_HELPER_ADDR = Address.fromString( constant GOERLI_SHORT_HELPER_ADDR (line 55) | const GOERLI_SHORT_HELPER_ADDR = Address.fromString( constant GOERLI_CRAB_V2_ADDR (line 58) | const GOERLI_CRAB_V2_ADDR = Address.fromString( constant GOERLI_CRAB_MIGRATION_ADDR (line 61) | const GOERLI_CRAB_MIGRATION_ADDR = Address.fromString( constant GOERLI_CRAB_V1_ADDR (line 64) | const GOERLI_CRAB_V1_ADDR = Address.fromString( constant GOERLI_BULL_STRATEGY_ADDR (line 67) | const GOERLI_BULL_STRATEGY_ADDR = Address.fromString( constant GOERLI_AUCTION_BULL_ADDR (line 70) | const GOERLI_AUCTION_BULL_ADDR = Address.fromString( constant GOERLI_FLASH_BULL_ADDR (line 73) | const GOERLI_FLASH_BULL_ADDR = Address.fromString( constant GOERLI_WETH_ADDR (line 77) | const GOERLI_WETH_ADDR = Address.fromString( constant SHORT_HELPER_ADDR (line 81) | const SHORT_HELPER_ADDR = getShortHelperAddr(dataSource.network()); constant CRAB_V2_ADDR (line 82) | const CRAB_V2_ADDR = getCrabV2Addr(dataSource.network()); constant CRAB_MIGRATION_ADDR (line 83) | const CRAB_MIGRATION_ADDR = getCrabMigrationAddr(dataSource.network()); constant CRAB_V1_ADDR (line 84) | const CRAB_V1_ADDR = getCrabV1Addr(dataSource.network()); constant FLASH_BULL_ADDR (line 85) | const FLASH_BULL_ADDR = getFlashBullAddr(dataSource.network()); constant BULL_ADDR (line 86) | const BULL_ADDR = getBullAddr(dataSource.network()); constant AUCTION_BULL (line 87) | const AUCTION_BULL = getAuctionBullAddr(dataSource.network()); constant WETH (line 88) | const WETH = getWethAddr(dataSource.network()); FILE: packages/subgraph/src/controller.ts function handleBurnShort (line 95) | function handleBurnShort(event: BurnShort): void { function handleDepositCollateral (line 129) | function handleDepositCollateral(event: DepositCollateral): void { function handleDepositUniPositionToken (line 165) | function handleDepositUniPositionToken( function handleFeeRateUpdated (line 175) | function handleFeeRateUpdated(event: FeeRateUpdated): void {} function handleFeeRecipientUpdated (line 177) | function handleFeeRecipientUpdated(event: FeeRecipientUpdated): void {} function handleLiquidate (line 179) | function handleLiquidate(event: Liquidate): void { function handleMintShort (line 227) | function handleMintShort(event: MintShort): void { function handleNormalizationFactorUpdated (line 260) | function handleNormalizationFactorUpdated( function handleOpenVault (line 273) | function handleOpenVault(event: OpenVault): void { function handleOwnershipTransferred (line 285) | function handleOwnershipTransferred(event: OwnershipTransferred): void {} function handlePaused (line 287) | function handlePaused(event: Paused): void {} function handleRedeemLong (line 289) | function handleRedeemLong(event: RedeemLong): void {} function handleRedeemShort (line 291) | function handleRedeemShort(event: RedeemShort): void {} function handleReduceDebt (line 293) | function handleReduceDebt(event: ReduceDebt): void {} function handleShutdown (line 295) | function handleShutdown(event: Shutdown): void {} function handleUnPaused (line 297) | function handleUnPaused(event: UnPaused): void {} function handleUpdateOperator (line 299) | function handleUpdateOperator(event: UpdateOperator): void { function handleWithdrawCollateral (line 307) | function handleWithdrawCollateral(event: WithdrawCollateral): void { function handleWithdrawUniPositionToken (line 343) | function handleWithdrawUniPositionToken( function getHourStatSnapshot (line 353) | function getHourStatSnapshot(timestamp: BigInt): HourStatSnapshot { function getDayStatSnapshot (line 382) | function getDayStatSnapshot(timestamp: BigInt): DayStatSnapshot { function getTransactionDetail (line 411) | function getTransactionDetail( FILE: packages/subgraph/src/crabV2.ts function loadOrCreateTx (line 46) | function loadOrCreateTx(id: string): CrabUserTxSchema { function handleDeposit (line 61) | function handleDeposit(event: Deposit): void { function handleWithdraw (line 74) | function handleWithdraw(event: Withdraw): void { function handleWithdrawShutdown (line 87) | function handleWithdrawShutdown(event: WithdrawShutdown): void { function handleFlashDeposit (line 98) | function handleFlashDeposit(event: FlashDeposit): void { function handleFlashWithdraw (line 121) | function handleFlashWithdraw(event: FlashWithdraw): void { function handleFlashDepositCallback (line 136) | function handleFlashDepositCallback(event: FlashDepositCallback): void { function handleFlashDepositERC20 (line 144) | function handleFlashDepositERC20(event: FlashDepositERC20): void { function handleFlashWithdrawERC20 (line 152) | function handleFlashWithdrawERC20(event: FlashWithdrawERC20): void { function handleNettingDeposit (line 159) | function handleNettingDeposit(event: USDCDeposited): void { function handleNettingWithdraw (line 175) | function handleNettingWithdraw(event: CrabWithdrawn): void { function handleFlashWithdrawCallback (line 191) | function handleFlashWithdrawCallback(event: FlashWithdrawCallback): void { function handleTransfer (line 199) | function handleTransfer(event: Transfer): void { function handleDepositV1Shares (line 222) | function handleDepositV1Shares(event: DepositV1Shares): void { function handleSetHedgeTimeThreshold (line 238) | function handleSetHedgeTimeThreshold(event: SetHedgeTimeThreshold): void { function handleQueueTransaction (line 245) | function handleQueueTransaction(event: QueueTransaction): void { function handleExecuteTransaction (line 257) | function handleExecuteTransaction(event: QueueTransaction): void { function handleHedgeOTC (line 270) | function handleHedgeOTC(event: HedgeOTC): void { function handleHedgeOTCSingle (line 285) | function handleHedgeOTCSingle(event: HedgeOTCSingle): void { function handleSetStrategyCap (line 298) | function handleSetStrategyCap(event: SetStrategyCap): void { function handleSetHedgingTwapPeriod (line 305) | function handleSetHedgingTwapPeriod(event: SetHedgingTwapPeriod): void { function handleSetHedgePriceThreshold (line 312) | function handleSetHedgePriceThreshold(event: SetHedgePriceThreshold): vo... function handleSetOTCPriceTolerance (line 319) | function handleSetOTCPriceTolerance(event: SetOTCPriceTolerance): void { function handleVaultTransferred (line 326) | function handleVaultTransferred(event: VaultTransferred): void { FILE: packages/subgraph/src/crabstrategy.ts function loadOrCreateTx (line 21) | function loadOrCreateTx(id: string): CrabStrategyTx { function handleDeposit (line 33) | function handleDeposit(event: Deposit): void { function handleWithdraw (line 44) | function handleWithdraw(event: Withdraw): void { function handleFlashDeposit (line 55) | function handleFlashDeposit(event: FlashDeposit): void { function handleFlashWithdraw (line 65) | function handleFlashWithdraw(event: FlashWithdraw): void { function handleHedgeOnUniswap (line 75) | function handleHedgeOnUniswap(event: HedgeOnUniswap): void { function handleHedge (line 87) | function handleHedge(event: Hedge): void { function handleFlashDepositCallback (line 100) | function handleFlashDepositCallback(event: FlashDepositCallback): void { function handleFlashWithdrawCallback (line 106) | function handleFlashWithdrawCallback(event: FlashWithdrawCallback): void { function handleTransfer (line 112) | function handleTransfer(event: Transfer): void { function handleExecuteSellAuction (line 135) | function handleExecuteSellAuction(event: ExecuteSellAuction): void { function handleExecuteBuyAuction (line 146) | function handleExecuteBuyAuction(event: ExecuteBuyAuction): void { FILE: packages/subgraph/src/util.ts function getShortHelperAddr (line 29) | function getShortHelperAddr(networkName: string): Address { function getCrabV2Addr (line 43) | function getCrabV2Addr(networkName: string): Address { function getCrabMigrationAddr (line 54) | function getCrabMigrationAddr(networkName: string): Address { function getCrabV1Addr (line 65) | function getCrabV1Addr(networkName: string): Address { function getFlashBullAddr (line 76) | function getFlashBullAddr(networkName: string): Address { function getBullAddr (line 87) | function getBullAddr(networkName: string): Address { function getAuctionBullAddr (line 98) | function getAuctionBullAddr(networkName: string): Address { function getWethAddr (line 109) | function getWethAddr(networkName: string): Address { function loadOrCreateAccount (line 118) | function loadOrCreateAccount(accountId: string): Account { function loadOrCreateStrategy (line 128) | function loadOrCreateStrategy(id: string): Strategy {