Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.
Stake2Earn uses cumulative stake-weighted accounting. Fees released during an update are shared across the current top-staker list according to active stake amount.All token amounts are integer raw token units. UI values should apply the relevant token decimals.
Only active stake in the top-staker list earns newly released fees.Eligible Stakers=Top N stakers by active stakeN=top_list_lengthProduction deployments enforce:5≤N≤1,000If two active stake amounts are equal, the earlier full-balance-list index ranks higher.
The effective stake amount is the denominator for reward splitting.Effective Stake Amount=i∈Top Stakers∑Stake AmountiIf the effective stake amount is zero, released-fee accounting does not advance. The program preserves locked fees for future stakers and updates last_updated_at to the current time.
When fee accounting runs, the program may claim new fees from the DAMM v1 lock escrow.After the first claim, production deployments require:Current Time−Last Claim Fee At≥300 secondsThe program also skips the lock-escrow claim if either pending token fee is zero:Pending Fee A=0orPending Fee B=0Even when no new lock-escrow fee is claimed, existing locked fees can still drip during the update.
Fees are not released until after the configured start timestamp.Current Time>Start Fee Distribute TimestampAt initialization, last_updated_at is set to the start timestamp. If the current time is less than or equal to the start timestamp, newly claimed fees are added to locked fees but released amount is zero.
Each token side is released separately. For one token:Locked Feenew=Locked Feeold+Newly Claimed FeeSeconds Elapsed=Current Time−Last Updated AtIf elapsed time is greater than or equal to the full unlock duration:Released Fee=Locked FeenewOtherwise:Released Fee=⌊Seconds To Full UnlockLocked Feenew×Seconds Elapsed⌋The program then subtracts the released amount:Remaining Locked Fee=Locked Feenew−Released Fee
Released fees increase a cumulative fee-per-stake value for the current top-staker list. The program uses SCALE_OFFSET = 64.Delta Fee Per Stake=⌊Effective Stake AmountReleased Fee×264⌋Cumulative Fee Per Stakenew=Cumulative Fee Per Stakeold+Delta Fee Per StakeToken A and token B have separate cumulative values.
A user accrues new pending rewards only while their stake escrow is marked as in the top list.Unaccounted Fee Per Stake=Current Cumulative Fee Per Stake−User CheckpointNew Pending Fee=⌊264User Active Stake×Unaccounted Fee Per Stake⌋User Pending Feenew=User Pending Feeold+New Pending FeeUser Checkpointnew=Current Cumulative Fee Per StakeWhen a user enters the top-staker list, their checkpoints are set to the current cumulative values. When a user leaves the top-staker list, their pending rewards are updated before they are marked out.
The vault knows which pool token is the stake mint. The stake-mint side is restaked; the quote-mint side is transferred to the user.If token A is the stake mint:Restake Amount=Pending Fee AQuote Claim Amount=min(Pending Fee B,max_fee)If token B is the stake mint:Restake Amount=Pending Fee BQuote Claim Amount=min(Pending Fee A,max_fee)After claim:Active Stakenew=Active Stakeold+Restake AmountThe quote side can remain partially pending when max_fee is lower than the available quote reward. The stake-mint side is claimed in full and restaked.
The vault’s total active stake changes when users stake, claim restaked base rewards, request unstake, or cancel unstake.Total Active Stakenew=Total Active Stakeold+Stake AmountTotal Active Stakenew=Total Active Stakeold+Restake AmountTotal Active Stakenew=Total Active Stakeold−Unstake AmountTotal Active Stakenew=Total Active Stakeold+Canceled Unstake Amount
A requested unstake records a release time:Release Time=Request Time+Unstake Lock DurationWithdrawal is allowed only when:Current Time≥Release TimeProduction deployments enforce:6 hours≤Unstake Lock Duration≤31 days
Requested unstake amounts stop counting as active stake immediately. They do not earn rewards, do not help leaderboard rank, and cannot be withdrawn until the release time is reached.
Stake2Earn uses 2^64 scaling for fee-per-stake accounting, but all transfers and stored pending rewards are integer token amounts. Division rounds down. Small residual value can remain in cumulative accounting or locked-fee balances when released fees do not divide evenly across active top-list stake.For interfaces, display rewards as estimates until claimed. Exact values depend on fee collection timing, drip timing, leaderboard state, active stake, token decimals, max_fee, and integer rounding.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Meteora Documentation","colors":{"primary":"#F54B00","light":"#F54B00","dark":"#F54B00"},"logo":{"light":"https://mintcdn.com/meteora/FuYCvEvL3a7_z_Mt/assets/nav/meteora-docs-light.png?fit=max\u0026auto=format\u0026n=FuYCvEvL3a7_z_Mt\u0026q=85\u0026s=9b7afa272c2adebd183c6e55b45c9326","dark":"https://mintcdn.com/meteora/FuYCvEvL3a7_z_Mt/assets/nav/meteora-docs-dark.png?fit=max\u0026auto=format\u0026n=FuYCvEvL3a7_z_Mt\u0026q=85\u0026s=cc1569cccf60c9058cc0be9f61743fc7"},"favicon":"https://mintcdn.com/meteora/FuYCvEvL3a7_z_Mt/assets/logo/meteora.png?fit=max\u0026auto=format\u0026n=FuYCvEvL3a7_z_Mt\u0026q=85\u0026s=5ae3f2a17133bed15a6360c41694c4d7","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","typescript","bash","rust"]}},"appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"icon":"comet","href":"https://app.meteora.ag/","label":"App"},{"icon":"medium","href":"https://blog.meteora.ag","label":"Blog"},{"icon":"discord","href":"https://discord.com/invite/meteora","label":"Support"}]},"footer":{"socials":{"discord":"https://discord.gg/meteora","x":"https://x.com/MeteoraAG","youtube":"https://www.youtube.com/@meteora-ag","medium":"https://blog.meteora.ag/","github":"https://github.com/MeteoraAg","linkedin":"https://www.linkedin.com/company/meteora-ag"},"links":[{"header":"Meteora","items":[{"label":"Meteora","href":"https://app.meteora.ag"},{"label":"Terms of Service","href":"https://docs.meteora.ag/resources/legal/terms-of-service"}]}]},"fonts":{"family":"Inter"},"styling":{"codeblocks":"system","latex":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meteora","hasAudioNarration":false,"actualSubdomain":"meteora","customDomains":["docs.meteora.ag"],"gitSource":{"type":"github","owner":"meteoraag","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae968e0715034d486e241ba","collectionId":"93647572-50f9-4b90-b388-8d55bf85ed84","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae968e0715034d486e241ba"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae968e0715034d486e241ba","clientVersion":"0.0.4064","searchFilterCounts":[{"language":"default","tag":"Developer Guides","count":161},{"language":"default","tag":"Get Started","count":67},{"language":"default","tag":"API Reference","count":51},{"language":"default","tag":"API Endpoints","count":46},{"language":"default","tag":"Program","count":39},{"language":"default","tag":"DLMM","count":38},{"language":"default","tag":"DAMM v1","count":32},{"language":"default","tag":"DAMM v2","count":31},{"language":"default","tag":"TypeScript SDK","count":31},{"language":"default","tag":"Core Products","count":28}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"legacy-products/stake2earn/formulas","slug":"/legacy-products/stake2earn/formulas","pageMetadata":{"title":"Stake2Earn Formulas","sidebarTitle":"Formulas","description":"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.","llmsDescription":"Explains Stake2Earn formulas from the stake-for-fee program including top-staker eligibility, effective stake amount, locked fee release, Q64 fee-per-stake accounting, pending fee updates, quote-token claims with max_fee, base-token restaking, total active stake, cooldown release time, and integer rounding.","href":"/legacy-products/stake2earn/formulas"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={annotation:`annotation`,code:`code`,math:`math`,mfrac:`mfrac`,mi:`mi`,mn:`mn`,mo:`mo`,mrow:`mrow`,mspace:`mspace`,msub:`msub`,msup:`msup`,mtext:`mtext`,munder:`munder`,p:`p`,semantics:`semantics`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Stake2Earn uses cumulative stake-weighted accounting. Fees released during an update are shared across the current top-staker list according to active stake amount.`}),`\n`,_jsx(_components.p,{children:`All token amounts are integer raw token units. UI values should apply the relevant token decimals.`}),`\n`,_jsx(Heading,{level:`2`,id:`key-terms`,children:`Key Terms`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Term`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stake_amount`})}),_jsx(_components.td,{children:`A user’s active staked amount in raw project-token units.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`top_list_length`})}),_jsx(_components.td,{children:`Number of stakers eligible for newly released fees. Production range: 5 to 1,000.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`effective_stake_amount`})}),_jsx(_components.td,{children:`Sum of active stake amounts in the current top-staker list.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`locked_fee_a`}),`, `,_jsx(_components.code,{children:`locked_fee_b`})]}),_jsx(_components.td,{children:`Collected token A and token B fees that have not fully released yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seconds_to_full_unlock`})}),_jsx(_components.td,{children:`Duration used to drip locked fees. Production range: 6 hours to 31 days.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cumulative_fee_per_liquidity`})}),_jsxs(_components.td,{children:[`Cumulative released fee per unit of eligible stake, scaled by `,_jsx(_components.code,{children:`2^64`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`checkpoint`})}),_jsx(_components.td,{children:`User’s last accounted cumulative fee-per-stake value.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee_pending`})}),_jsx(_components.td,{children:`User rewards already accounted but not fully claimed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unstake_lock_duration`})}),_jsx(_components.td,{children:`Cooldown duration before a requested unstake can be withdrawn.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`top-staker-eligibility`,children:`Top-Staker Eligibility`}),`\n`,_jsx(_components.p,{children:`Only active stake in the top-staker list earns newly released fees.`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Eligible\\xA0Stakers`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Top\\xA0`}),_jsx(_components.mi,{children:`N`}),_jsx(_components.mtext,{children:`\\xA0stakers\\xA0by\\xA0active\\xA0stake`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Eligible Stakers} = \\\\text{Top } N \\\\text{ stakers by active stake}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Eligible\\xA0Stakers`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Top\\xA0`})}),_jsx(_components.span,{className:`mord mathnormal`,style:{marginRight:`0.109em`},children:`N`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`\\xA0stakers\\xA0by\\xA0active\\xA0stake`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`N`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`top_list_length`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`N = \\\\text{top\\\\_list\\\\_length}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6833em`}}),_jsx(_components.span,{className:`mord mathnormal`,style:{marginRight:`0.109em`},children:`N`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`1.0044em`,verticalAlign:`-0.31em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`top_list_length`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`Production deployments enforce:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mn,{children:`5`}),_jsx(_components.mo,{children:`≤`}),_jsx(_components.mi,{children:`N`}),_jsx(_components.mo,{children:`≤`}),_jsx(_components.mn,{children:`1,000`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`5 \\\\leq N \\\\leq 1{,}000\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.7804em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord`,children:`5`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≤`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8193em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord mathnormal`,style:{marginRight:`0.109em`},children:`N`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≤`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8389em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord`,children:`1`}),_jsx(_components.span,{className:`mord`,children:_jsx(_components.span,{className:`mpunct`,children:`,`})}),_jsx(_components.span,{className:`mord`,children:`000`})]})]})]})}),`\n`,_jsx(_components.p,{children:`If two active stake amounts are equal, the earlier full-balance-list index ranks higher.`}),`\n`,_jsx(Heading,{level:`2`,id:`effective-stake-amount`,children:`Effective Stake Amount`}),`\n`,_jsx(_components.p,{children:`The effective stake amount is the denominator for reward splitting.`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Effective\\xA0Stake\\xA0Amount`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.munder,{children:[_jsx(_components.mo,{children:`∑`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`i`}),_jsx(_components.mo,{children:`∈`}),_jsx(_components.mtext,{children:`Top\\xA0Stakers`})]})]}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Stake\\xA0Amount`}),_jsx(_components.mi,{children:`i`})]})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Effective Stake Amount} =\n\\\\sum_{i \\\\in \\\\text{Top Stakers}} \\\\text{Stake Amount}_i\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Effective\\xA0Stake\\xA0Amount`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`2.4882em`,verticalAlign:`-1.4382em`}}),_jsx(_components.span,{className:`mop op-limits`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsxs(_components.span,{className:`vlist`,style:{height:`1.05em`},children:[_jsxs(_components.span,{style:{top:`-1.8479em`,marginLeft:`0em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3.05em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`i`}),_jsx(_components.span,{className:`mrel mtight`,children:`∈`}),_jsx(_components.span,{className:`mord text mtight`,children:_jsx(_components.span,{className:`mord mtight`,children:`Top\\xA0Stakers`})})]})})]}),_jsxs(_components.span,{style:{top:`-3.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3.05em`}}),_jsx(_components.span,{children:_jsx(_components.span,{className:`mop op-symbol large-op`,children:`∑`})})]})]}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`1.4382em`},children:_jsx(_components.span,{})})})]})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.1667em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Stake\\xA0Amount`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3117em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsx(_components.span,{className:`mord mathnormal mtight`,children:`i`})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]})]})]})]})}),`\n`,_jsxs(_components.p,{children:[`If the effective stake amount is zero, released-fee accounting does not advance. The program preserves locked fees for future stakers and updates `,_jsx(_components.code,{children:`last_updated_at`}),` to the current time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`fee-collection-gate`,children:`Fee Collection Gate`}),`\n`,_jsx(_components.p,{children:`When fee accounting runs, the program may claim new fees from the DAMM v1 lock escrow.`}),`\n`,_jsx(_components.p,{children:`After the first claim, production deployments require:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Current\\xA0Time`}),_jsx(_components.mo,{children:`−`}),_jsx(_components.mtext,{children:`Last\\xA0Claim\\xA0Fee\\xA0At`}),_jsx(_components.mo,{children:`≥`}),_jsx(_components.mn,{children:`300`}),_jsx(_components.mtext,{children:`\\xA0seconds`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Current Time} - \\\\text{Last Claim Fee At} \\\\geq 300 \\\\text{ seconds}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.7667em`,verticalAlign:`-0.0833em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`−`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8304em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Last\\xA0Claim\\xA0Fee\\xA0At`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≥`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord`,children:`300`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`\\xA0seconds`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`The program also skips the lock-escrow claim if either pending token fee is zero:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0A`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mn,{children:`0`}),_jsx(_components.mspace,{width:`1em`}),_jsx(_components.mtext,{children:`or`}),_jsx(_components.mspace,{width:`1em`}),_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0B`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mn,{children:`0`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Pending Fee A} = 0 \\\\quad \\\\text{or} \\\\quad \\\\text{Pending Fee B} = 0\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0A`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord`,children:`0`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`1em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`or`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`1em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0B`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6444em`}}),_jsx(_components.span,{className:`mord`,children:`0`})]})]})]})}),`\n`,_jsx(_components.p,{children:`Even when no new lock-escrow fee is claimed, existing locked fees can still drip during the update.`}),`\n`,_jsx(Heading,{level:`2`,id:`fee-distribution-start`,children:`Fee Distribution Start`}),`\n`,_jsx(_components.p,{children:`Fees are not released until after the configured start timestamp.`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Current\\xA0Time`}),_jsx(_components.mo,{children:`>`}),_jsx(_components.mtext,{children:`Start\\xA0Fee\\xA0Distribute\\xA0Timestamp`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Current Time} > \\\\text{Start Fee Distribute Timestamp}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.7224em`,verticalAlign:`-0.0391em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`>`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Start\\xA0Fee\\xA0Distribute\\xA0Timestamp`})})]})]})]})}),`\n`,_jsxs(_components.p,{children:[`At initialization, `,_jsx(_components.code,{children:`last_updated_at`}),` is set to the start timestamp. If the current time is less than or equal to the start timestamp, newly claimed fees are added to locked fees but released amount is zero.`]}),`\n`,_jsx(Heading,{level:`2`,id:`fee-drip-release`,children:`Fee Drip Release`}),`\n`,_jsx(_components.p,{children:`Each token side is released separately. For one token:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Locked\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Locked\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Newly\\xA0Claimed\\xA0Fee`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Locked Fee}_{new} =\n\\\\text{Locked Fee}_{old} + \\\\text{Newly Claimed Fee}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Locked\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Locked\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Newly\\xA0Claimed\\xA0Fee`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Seconds\\xA0Elapsed`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Current\\xA0Time`}),_jsx(_components.mo,{children:`−`}),_jsx(_components.mtext,{children:`Last\\xA0Updated\\xA0At`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Seconds Elapsed} =\n\\\\text{Current Time} - \\\\text{Last Updated At}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Seconds\\xA0Elapsed`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.7667em`,verticalAlign:`-0.0833em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`−`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Last\\xA0Updated\\xA0At`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`If elapsed time is greater than or equal to the full unlock duration:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Released\\xA0Fee`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Locked\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Released Fee} = \\\\text{Locked Fee}_{new}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Released\\xA0Fee`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Locked\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]})]})]})]})}),`\n`,_jsx(_components.p,{children:`Otherwise:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Released\\xA0Fee`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.mrow,{children:[_jsx(_components.mo,{fence:`true`,children:`⌊`}),_jsxs(_components.mfrac,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Locked\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`×`}),_jsx(_components.mtext,{children:`Seconds\\xA0Elapsed`})]}),_jsx(_components.mtext,{children:`Seconds\\xA0To\\xA0Full\\xA0Unlock`})]}),_jsx(_components.mo,{fence:`true`,children:`⌋`})]})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Released Fee} =\n\\\\left\\\\lfloor\n\\\\frac{\\\\text{Locked Fee}_{new} \\\\times \\\\text{Seconds Elapsed}}\n{\\\\text{Seconds To Full Unlock}}\n\\\\right\\\\rfloor\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Released\\xA0Fee`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`2.4em`,verticalAlign:`-0.95em`}}),_jsxs(_components.span,{className:`minner`,children:[_jsx(_components.span,{className:`mopen delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌊`})}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mopen nulldelimiter`}),_jsx(_components.span,{className:`mfrac`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsxs(_components.span,{className:`vlist`,style:{height:`1.3714em`},children:[_jsxs(_components.span,{style:{top:`-2.314em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`mord`,children:_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Seconds\\xA0To\\xA0Full\\xA0Unlock`})})})]}),_jsxs(_components.span,{style:{top:`-3.23em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`frac-line`,style:{borderBottomWidth:`0.04em`}})]}),_jsxs(_components.span,{style:{top:`-3.677em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Locked\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`×`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Seconds\\xA0Elapsed`})})]})]})]}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.686em`},children:_jsx(_components.span,{})})})]})}),_jsx(_components.span,{className:`mclose nulldelimiter`})]}),_jsx(_components.span,{className:`mclose delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌋`})})]})]})]})]})}),`\n`,_jsx(_components.p,{children:`The program then subtracts the released amount:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Remaining\\xA0Locked\\xA0Fee`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Locked\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`−`}),_jsx(_components.mtext,{children:`Released\\xA0Fee`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Remaining Locked Fee} =\n\\\\text{Locked Fee}_{new} - \\\\text{Released Fee}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Remaining\\xA0Locked\\xA0Fee`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Locked\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`−`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Released\\xA0Fee`})})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`fee-per-stake`,children:`Fee Per Stake`}),`\n`,_jsxs(_components.p,{children:[`Released fees increase a cumulative fee-per-stake value for the current top-staker list. The program uses `,_jsx(_components.code,{children:`SCALE_OFFSET = 64`}),`.`]}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Delta\\xA0Fee\\xA0Per\\xA0Stake`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.mrow,{children:[_jsx(_components.mo,{fence:`true`,children:`⌊`}),_jsxs(_components.mfrac,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Released\\xA0Fee`}),_jsx(_components.mo,{children:`×`}),_jsxs(_components.msup,{children:[_jsx(_components.mn,{children:`2`}),_jsx(_components.mn,{children:`64`})]})]}),_jsx(_components.mtext,{children:`Effective\\xA0Stake\\xA0Amount`})]}),_jsx(_components.mo,{fence:`true`,children:`⌋`})]})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Delta Fee Per Stake} =\n\\\\left\\\\lfloor\n\\\\frac{\\\\text{Released Fee} \\\\times 2^{64}}\n{\\\\text{Effective Stake Amount}}\n\\\\right\\\\rfloor\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Delta\\xA0Fee\\xA0Per\\xA0Stake`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`2.4411em`,verticalAlign:`-0.95em`}}),_jsxs(_components.span,{className:`minner`,children:[_jsx(_components.span,{className:`mopen delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌊`})}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mopen nulldelimiter`}),_jsx(_components.span,{className:`mfrac`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsxs(_components.span,{className:`vlist`,style:{height:`1.4911em`},children:[_jsxs(_components.span,{style:{top:`-2.314em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`mord`,children:_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Effective\\xA0Stake\\xA0Amount`})})})]}),_jsxs(_components.span,{style:{top:`-3.23em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`frac-line`,style:{borderBottomWidth:`0.04em`}})]}),_jsxs(_components.span,{style:{top:`-3.677em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Released\\xA0Fee`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`×`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord`,children:`2`}),_jsx(_components.span,{className:`msupsub`,children:_jsx(_components.span,{className:`vlist-t`,children:_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.8141em`},children:_jsxs(_components.span,{style:{top:`-3.063em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsx(_components.span,{className:`mord mtight`,children:_jsx(_components.span,{className:`mord mtight`,children:`64`})})})]})})})})})]})]})]})]}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.686em`},children:_jsx(_components.span,{})})})]})}),_jsx(_components.span,{className:`mclose nulldelimiter`})]}),_jsx(_components.span,{className:`mclose delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌋`})})]})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Cumulative\\xA0Fee\\xA0Per\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Cumulative\\xA0Fee\\xA0Per\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Delta\\xA0Fee\\xA0Per\\xA0Stake`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Cumulative Fee Per Stake}_{new} =\n\\\\text{Cumulative Fee Per Stake}_{old} + \\\\text{Delta Fee Per Stake}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Cumulative\\xA0Fee\\xA0Per\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Cumulative\\xA0Fee\\xA0Per\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Delta\\xA0Fee\\xA0Per\\xA0Stake`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`Token A and token B have separate cumulative values.`}),`\n`,_jsx(Heading,{level:`2`,id:`pending-user-rewards`,children:`Pending User Rewards`}),`\n`,_jsx(_components.p,{children:`A user accrues new pending rewards only while their stake escrow is marked as in the top list.`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Unaccounted\\xA0Fee\\xA0Per\\xA0Stake`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Current\\xA0Cumulative\\xA0Fee\\xA0Per\\xA0Stake`}),_jsx(_components.mo,{children:`−`}),_jsx(_components.mtext,{children:`User\\xA0Checkpoint`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Unaccounted Fee Per Stake} =\n\\\\text{Current Cumulative Fee Per Stake} - \\\\text{User Checkpoint}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Unaccounted\\xA0Fee\\xA0Per\\xA0Stake`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.7778em`,verticalAlign:`-0.0833em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Cumulative\\xA0Fee\\xA0Per\\xA0Stake`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`−`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`User\\xA0Checkpoint`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`New\\xA0Pending\\xA0Fee`}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.mrow,{children:[_jsx(_components.mo,{fence:`true`,children:`⌊`}),_jsxs(_components.mfrac,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`User\\xA0Active\\xA0Stake`}),_jsx(_components.mo,{children:`×`}),_jsx(_components.mtext,{children:`Unaccounted\\xA0Fee\\xA0Per\\xA0Stake`})]}),_jsxs(_components.msup,{children:[_jsx(_components.mn,{children:`2`}),_jsx(_components.mn,{children:`64`})]})]}),_jsx(_components.mo,{fence:`true`,children:`⌋`})]})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{New Pending Fee} =\n\\\\left\\\\lfloor\n\\\\frac{\\\\text{User Active Stake} \\\\times \\\\text{Unaccounted Fee Per Stake}}\n{2^{64}}\n\\\\right\\\\rfloor\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`New\\xA0Pending\\xA0Fee`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`2.4em`,verticalAlign:`-0.95em`}}),_jsxs(_components.span,{className:`minner`,children:[_jsx(_components.span,{className:`mopen delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌊`})}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mopen nulldelimiter`}),_jsx(_components.span,{className:`mfrac`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsxs(_components.span,{className:`vlist`,style:{height:`1.3714em`},children:[_jsxs(_components.span,{style:{top:`-2.314em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`mord`,children:_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord`,children:`2`}),_jsx(_components.span,{className:`msupsub`,children:_jsx(_components.span,{className:`vlist-t`,children:_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.7401em`},children:_jsxs(_components.span,{style:{top:`-2.989em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsx(_components.span,{className:`mord mtight`,children:_jsx(_components.span,{className:`mord mtight`,children:`64`})})})]})})})})})]})})]}),_jsxs(_components.span,{style:{top:`-3.23em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsx(_components.span,{className:`frac-line`,style:{borderBottomWidth:`0.04em`}})]}),_jsxs(_components.span,{style:{top:`-3.677em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`3em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`User\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`×`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Unaccounted\\xA0Fee\\xA0Per\\xA0Stake`})})]})]})]}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.686em`},children:_jsx(_components.span,{})})})]})}),_jsx(_components.span,{className:`mclose nulldelimiter`})]}),_jsx(_components.span,{className:`mclose delimcenter`,style:{top:`0em`},children:_jsx(_components.span,{className:`delimsizing size3`,children:`⌋`})})]})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`User\\xA0Pending\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`User\\xA0Pending\\xA0Fee`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`New\\xA0Pending\\xA0Fee`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{User Pending Fee}_{new} =\n\\\\text{User Pending Fee}_{old} + \\\\text{New Pending Fee}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.9386em`,verticalAlign:`-0.2441em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`User\\xA0Pending\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.0573em`},children:_jsxs(_components.span,{style:{top:`-2.4559em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.2441em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.9386em`,verticalAlign:`-0.2441em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`User\\xA0Pending\\xA0Fee`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.242em`},children:_jsxs(_components.span,{style:{top:`-2.4559em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.2441em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`New\\xA0Pending\\xA0Fee`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`User\\xA0Checkpoint`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Current\\xA0Cumulative\\xA0Fee\\xA0Per\\xA0Stake`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{User Checkpoint}_{new} =\n\\\\text{Current Cumulative Fee Per Stake}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.9386em`,verticalAlign:`-0.2441em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`User\\xA0Checkpoint`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.0573em`},children:_jsxs(_components.span,{style:{top:`-2.4559em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.2441em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Cumulative\\xA0Fee\\xA0Per\\xA0Stake`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`When a user enters the top-staker list, their checkpoints are set to the current cumulative values. When a user leaves the top-staker list, their pending rewards are updated before they are marked out.`}),`\n`,_jsx(Heading,{level:`2`,id:`claim-and-restake`,children:`Claim and Restake`}),`\n`,_jsx(_components.p,{children:`The vault knows which pool token is the stake mint. The stake-mint side is restaked; the quote-mint side is transferred to the user.`}),`\n`,_jsx(_components.p,{children:`If token A is the stake mint:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Restake\\xA0Amount`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0A`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Restake Amount} = \\\\text{Pending Fee A}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Restake\\xA0Amount`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0A`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Quote\\xA0Claim\\xA0Amount`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mi,{children:`min`}),_jsx(_components.mo,{children:``}),_jsx(_components.mo,{stretchy:`false`,children:`(`}),_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0B`}),_jsx(_components.mo,{separator:`true`,children:`,`}),_jsx(_components.mtext,{children:`max_fee`}),_jsx(_components.mo,{stretchy:`false`,children:`)`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Quote Claim Amount} = \\\\min(\\\\text{Pending Fee B}, \\\\text{max\\\\_fee})\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Quote\\xA0Claim\\xA0Amount`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`1.06em`,verticalAlign:`-0.31em`}}),_jsx(_components.span,{className:`mop`,children:`min`}),_jsx(_components.span,{className:`mopen`,children:`(`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0B`})}),_jsx(_components.span,{className:`mpunct`,children:`,`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.1667em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`max_fee`})}),_jsx(_components.span,{className:`mclose`,children:`)`})]})]})]})}),`\n`,_jsx(_components.p,{children:`If token B is the stake mint:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Restake\\xA0Amount`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0B`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Restake Amount} = \\\\text{Pending Fee B}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Restake\\xA0Amount`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0B`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Quote\\xA0Claim\\xA0Amount`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mi,{children:`min`}),_jsx(_components.mo,{children:``}),_jsx(_components.mo,{stretchy:`false`,children:`(`}),_jsx(_components.mtext,{children:`Pending\\xA0Fee\\xA0A`}),_jsx(_components.mo,{separator:`true`,children:`,`}),_jsx(_components.mtext,{children:`max_fee`}),_jsx(_components.mo,{stretchy:`false`,children:`)`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Quote Claim Amount} = \\\\min(\\\\text{Pending Fee A}, \\\\text{max\\\\_fee})\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Quote\\xA0Claim\\xA0Amount`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`1.06em`,verticalAlign:`-0.31em`}}),_jsx(_components.span,{className:`mop`,children:`min`}),_jsx(_components.span,{className:`mopen`,children:`(`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Pending\\xA0Fee\\xA0A`})}),_jsx(_components.span,{className:`mpunct`,children:`,`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.1667em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`max_fee`})}),_jsx(_components.span,{className:`mclose`,children:`)`})]})]})]})}),`\n`,_jsx(_components.p,{children:`After claim:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Restake\\xA0Amount`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Active Stake}_{new} =\n\\\\text{Active Stake}_{old} + \\\\text{Restake Amount}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Restake\\xA0Amount`})})]})]})]})}),`\n`,_jsxs(_components.p,{children:[`The quote side can remain partially pending when `,_jsx(_components.code,{children:`max_fee`}),` is lower than the available quote reward. The stake-mint side is claimed in full and restaked.`]}),`\n`,_jsx(Heading,{level:`2`,id:`total-active-stake`,children:`Total Active Stake`}),`\n`,_jsx(_components.p,{children:`The vault’s total active stake changes when users stake, claim restaked base rewards, request unstake, or cancel unstake.`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Stake\\xA0Amount`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Total Active Stake}_{new} =\n\\\\text{Total Active Stake}_{old} + \\\\text{Stake Amount}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Stake\\xA0Amount`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Restake\\xA0Amount`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Total Active Stake}_{new} =\n\\\\text{Total Active Stake}_{old} + \\\\text{Restake Amount}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Restake\\xA0Amount`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`−`}),_jsx(_components.mtext,{children:`Unstake\\xA0Amount`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Total Active Stake}_{new} =\n\\\\text{Total Active Stake}_{old} - \\\\text{Unstake Amount}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`−`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Unstake\\xA0Amount`})})]})]})]})}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`n`}),_jsx(_components.mi,{children:`e`}),_jsx(_components.mi,{children:`w`})]})]}),_jsx(_components.mo,{children:`=`}),_jsxs(_components.msub,{children:[_jsx(_components.mtext,{children:`Total\\xA0Active\\xA0Stake`}),_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`o`}),_jsx(_components.mi,{children:`l`}),_jsx(_components.mi,{children:`d`})]})]}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Canceled\\xA0Unstake\\xA0Amount`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Total Active Stake}_{new} =\n\\\\text{Total Active Stake}_{old} + \\\\text{Canceled Unstake Amount}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.1514em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`n`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`e`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0269em`},children:`w`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8444em`,verticalAlign:`-0.15em`}}),_jsxs(_components.span,{className:`mord`,children:[_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Total\\xA0Active\\xA0Stake`})}),_jsx(_components.span,{className:`msupsub`,children:_jsxs(_components.span,{className:`vlist-t vlist-t2`,children:[_jsxs(_components.span,{className:`vlist-r`,children:[_jsx(_components.span,{className:`vlist`,style:{height:`0.3361em`},children:_jsxs(_components.span,{style:{top:`-2.55em`,marginRight:`0.05em`},children:[_jsx(_components.span,{className:`pstrut`,style:{height:`2.7em`}}),_jsx(_components.span,{className:`sizing reset-size6 size3 mtight`,children:_jsxs(_components.span,{className:`mord mtight`,children:[_jsx(_components.span,{className:`mord mathnormal mtight`,children:`o`}),_jsx(_components.span,{className:`mord mathnormal mtight`,style:{marginRight:`0.0197em`},children:`l`}),_jsx(_components.span,{className:`mord mathnormal mtight`,children:`d`})]})})]})}),_jsx(_components.span,{className:`vlist-s`,children:``})]}),_jsx(_components.span,{className:`vlist-r`,children:_jsx(_components.span,{className:`vlist`,style:{height:`0.15em`},children:_jsx(_components.span,{})})})]})})]}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Canceled\\xA0Unstake\\xA0Amount`})})]})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`unstake-cooldown`,children:`Unstake Cooldown`}),`\n`,_jsx(_components.p,{children:`A requested unstake records a release time:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Release\\xA0Time`}),_jsx(_components.mo,{children:`=`}),_jsx(_components.mtext,{children:`Request\\xA0Time`}),_jsx(_components.mo,{children:`+`}),_jsx(_components.mtext,{children:`Unstake\\xA0Lock\\xA0Duration`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Release Time} =\n\\\\text{Request Time} + \\\\text{Unstake Lock Duration}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Release\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`=`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8778em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Request\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}}),_jsx(_components.span,{className:`mbin`,children:`+`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2222em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Unstake\\xA0Lock\\xA0Duration`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`Withdrawal is allowed only when:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mtext,{children:`Current\\xA0Time`}),_jsx(_components.mo,{children:`≥`}),_jsx(_components.mtext,{children:`Release\\xA0Time`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`\\\\text{Current Time} \\\\geq \\\\text{Release Time}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8193em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Current\\xA0Time`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≥`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6944em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Release\\xA0Time`})})]})]})]})}),`\n`,_jsx(_components.p,{children:`Production deployments enforce:`}),`\n`,_jsx(_components.span,{className:`katex-display`,children:_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mn,{children:`6`}),_jsx(_components.mtext,{children:`\\xA0hours`}),_jsx(_components.mo,{children:`≤`}),_jsx(_components.mtext,{children:`Unstake\\xA0Lock\\xA0Duration`}),_jsx(_components.mo,{children:`≤`}),_jsx(_components.mn,{children:`31`}),_jsx(_components.mtext,{children:`\\xA0days`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`6 \\\\text{ hours} \\\\leq \\\\text{Unstake Lock Duration} \\\\leq 31 \\\\text{ days}\n`})]})})}),_jsxs(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:[_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8304em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord`,children:`6`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`\\xA0hours`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≤`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8304em`,verticalAlign:`-0.136em`}}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`Unstake\\xA0Lock\\xA0Duration`})}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}}),_jsx(_components.span,{className:`mrel`,children:`≤`}),_jsx(_components.span,{className:`mspace`,style:{marginRight:`0.2778em`}})]}),_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.8889em`,verticalAlign:`-0.1944em`}}),_jsx(_components.span,{className:`mord`,children:`31`}),_jsx(_components.span,{className:`mord text`,children:_jsx(_components.span,{className:`mord`,children:`\\xA0days`})})]})]})]})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Requested unstake amounts stop counting as active stake immediately. They do not earn rewards, do not help leaderboard rank, and cannot be withdrawn until the release time is reached.`})}),`\n`,_jsx(Heading,{level:`2`,id:`rounding-and-precision`,children:`Rounding and Precision`}),`\n`,_jsxs(_components.p,{children:[`Stake2Earn uses `,_jsx(_components.code,{children:`2^64`}),` scaling for fee-per-stake accounting, but all transfers and stored pending rewards are integer token amounts. Division rounds down. Small residual value can remain in cumulative accounting or locked-fee balances when released fees do not divide evenly across active top-list stake.`]}),`\n`,_jsxs(_components.p,{children:[`For interfaces, display rewards as estimates until claimed. Exact values depend on fee collection timing, drip timing, leaderboard state, active stake, token decimals, `,_jsx(_components.code,{children:`max_fee`}),`, and integer rounding.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Stake2Earn Formulas","sidebarTitle":"Formulas","description":"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.","llmsDescription":"Explains Stake2Earn formulas from the stake-for-fee program including top-staker eligibility, effective stake amount, locked fee release, Q64 fee-per-stake accounting, pending fee updates, quote-token claims with max_fee, base-token restaking, total active stake, cooldown release time, and integer rounding.","href":"/legacy-products/stake2earn/formulas"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Key Terms","slug":"key-terms","depth":2,"children":[]},{"title":"Top-Staker Eligibility","slug":"top-staker-eligibility","depth":2,"children":[]},{"title":"Effective Stake Amount","slug":"effective-stake-amount","depth":2,"children":[]},{"title":"Fee Collection Gate","slug":"fee-collection-gate","depth":2,"children":[]},{"title":"Fee Distribution Start","slug":"fee-distribution-start","depth":2,"children":[]},{"title":"Fee Drip Release","slug":"fee-drip-release","depth":2,"children":[]},{"title":"Fee Per Stake","slug":"fee-per-stake","depth":2,"children":[]},{"title":"Pending User Rewards","slug":"pending-user-rewards","depth":2,"children":[]},{"title":"Claim and Restake","slug":"claim-and-restake","depth":2,"children":[]},{"title":"Total Active Stake","slug":"total-active-stake","depth":2,"children":[]},{"title":"Unstake Cooldown","slug":"unstake-cooldown","depth":2,"children":[]},{"title":"Rounding and Precision","slug":"rounding-and-precision","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"meteora","siteName":"Meteora Documentation","title":"Stake2Earn Formulas - Meteora Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-27T10:51:40.542Z","originalFileLocation":"legacy-products/stake2earn/formulas.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Meteora Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Stake2Earn Formulas - Meteora Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Meteora Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.meteora.ag/legacy-products/stake2earn/formulas\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meteora.mintlify.app/_mintlify/api/og/v2?division=Stake2Earn\u0026amp;title=Stake2Earn+Formulas\u0026amp;description=Understand+Stake2Earn+formulas+for+top-staker+eligibility%2C+fee+drips%2C+fee-per-stake+accounting%2C+pending+rewards%2C+claims%2C+restaking%2C+and+unstake+cooldowns.\u0026amp;theme=eb18b52cbb4394f91f6c5646\u0026amp;signature=b5c87a65e47328e83cfe7389701a73893636b6b11b3422c79c64d8c35ca027f3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Stake2Earn Formulas - Meteora Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meteora.mintlify.app/_mintlify/api/og/v2?division=Stake2Earn\u0026amp;title=Stake2Earn+Formulas\u0026amp;description=Understand+Stake2Earn+formulas+for+top-staker+eligibility%2C+fee+drips%2C+fee-per-stake+accounting%2C+pending+rewards%2C+claims%2C+restaking%2C+and+unstake+cooldowns.\u0026amp;theme=eb18b52cbb4394f91f6c5646\u0026amp;signature=b5c87a65e47328e83cfe7389701a73893636b6b11b3422c79c64d8c35ca027f3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meteora/DhpFC5DB62Ttge7c/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Meteora Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F54B00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.meteora.ag/legacy-products/stake2earn/formulas\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/legacy-products/stake2earn/formulas.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.meteora.ag/#organization\",\"name\":\"Meteora Documentation\",\"url\":\"https://docs.meteora.ag\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meteora/FuYCvEvL3a7_z_Mt/assets/nav/meteora-docs-light.png?fit=max\u0026auto=format\u0026n=FuYCvEvL3a7_z_Mt\u0026q=85\u0026s=9b7afa272c2adebd183c6e55b45c9326\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.meteora.ag#website\",\"name\":\"Meteora Documentation\",\"url\":\"https://docs.meteora.ag\",\"publisher\":{\"@id\":\"https://docs.meteora.ag/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas#webpage\",\"url\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas\",\"name\":\"Stake2Earn Formulas\",\"description\":\"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\",\"dateModified\":\"2026-05-27T10:51:40.542Z\",\"isPartOf\":{\"@id\":\"https://docs.meteora.ag#website\"},\"breadcrumb\":{\"@id\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Legacy Products\",\"item\":\"https://docs.meteora.ag/legacy-products/damm-v1/stable-pools\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stake2Earn\",\"item\":\"https://docs.meteora.ag/legacy-products/stake2earn/what-is-stake2earn\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Stake2Earn Formulas\",\"item\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas#article\",\"headline\":\"Stake2Earn Formulas\",\"name\":\"Stake2Earn Formulas\",\"description\":\"Understand Stake2Earn formulas for top-staker eligibility, fee drips, fee-per-stake accounting, pending rewards, claims, restaking, and unstake cooldowns.\",\"url\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas\",\"mainEntityOfPage\":{\"@id\":\"https://docs.meteora.ag/legacy-products/stake2earn/formulas#webpage\"},\"dateModified\":\"2026-05-27T10:51:40.542Z\",\"publisher\":{\"@id\":\"https://docs.meteora.ag/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.meteora.ag#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Meteora Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Meteora Documentation","nav":{"global":null,"tabs":[{"tab":"Get Started","groups":[{"group":" ","pages":[{"title":"We Build Liquidity Pools","sidebarTitle":"Welcome to Meteora","href":"/get-started"},{"title":"Why are Liquidity Pools and Liquidity Providers on Solana Important?","sidebarTitle":"The Foundation of DeFi","href":"/get-started/why-are-liquidity-pools-important"},{"title":"Pushing the Boundaries of DeFi","sidebarTitle":"Pushing the Boundaries of DeFi","href":"/get-started/pushing-the-boundaries-of-defi"}]},{"group":"User Guides","pages":[{"title":"Getting Started","sidebarTitle":"Getting Started with Meteora","href":"/user-guides/getting-started-with-meteora"},{"title":"Staying Safe","sidebarTitle":"Staying Safe on Meteora","href":"/user-guides/staying-safe-on-meteora"},{"title":"How to become a Liquidity Provider","sidebarTitle":"Becoming a Liquidity Provider","href":"/user-guides/becoming-a-liquidity-provider"},{"title":"How to create a Liquidity Pool ","sidebarTitle":"Creating a Liquidity Pool","href":"/user-guides/creating-a-liquidity-pool"},{"title":"How to Swap Tokens on Meteora","sidebarTitle":"Swapping Tokens on Meteora","href":"/user-guides/swapping-tokens-on-meteora"},{"group":"How to use DLMM?","pages":[{"title":"DLMM Dynamic Terminal","sidebarTitle":"DLMM Dynamic Terminal","href":"/user-guides/how-to-use-dlmm/dynamic-terminal"},{"title":"TradingView Charts","sidebarTitle":"TradingView Charts","href":"/user-guides/how-to-use-dlmm/tradingview-charts"}]},{"group":"How to use DAMM v2?","pages":[{"title":"DAMM v2 Pool Detail","sidebarTitle":"DAMM v2 Pool Detail","href":"/user-guides/how-to-use-damm-v2/damm-v2-pool-detail"}]}]},{"group":"Core Products","pages":[{"group":"DLMM","root":{"title":"What is DLMM?","sidebarTitle":"What is DLMM?","href":"/core-products/dlmm/what-is-dlmm"},"pages":[{"title":"DLMM Dynamic Positions","sidebarTitle":"Dynamic Positions","href":"/core-products/dlmm/dynamic-positions"},{"title":"DLMM Limit Order","sidebarTitle":"Limit Order","href":"/core-products/dlmm/limit-order"},{"title":"DLMM Liquidity Mining","sidebarTitle":"Liquidity Mining","href":"/core-products/dlmm/liquidity-mining"},{"title":"DLMM Collect Fee Mode","sidebarTitle":"Collect Fee Mode","href":"/core-products/dlmm/collect-fee-mode"},{"title":"DLMM Token 2022 Support","sidebarTitle":"Token 2022 Support","href":"/core-products/dlmm/token-2022-support"},{"title":"DLMM Strategies and Use Cases","sidebarTitle":"Strategies and Use Cases","href":"/core-products/dlmm/strategies-and-use-cases"},{"title":"DLMM Formulas","sidebarTitle":"Formulas","href":"/core-products/dlmm/formulas"}]},{"group":"DAMM v2","root":{"title":"What is DAMM v2?","sidebarTitle":"What is DAMM v2?","href":"/core-products/damm-v2/what-is-damm-v2"},"pages":[{"title":"DAMM v2 Concentrated Liquidity","sidebarTitle":"Concentrated Liquidity","href":"/core-products/damm-v2/concentrated-liquidity"},{"title":"DAMM v2 Compounding Liquidity","sidebarTitle":"Compounding Liquidity","href":"/core-products/damm-v2/compounding-liquidity"},{"group":"DAMM v2 Fees","root":{"title":"DAMM v2 Fees","sidebarTitle":"Fees Overview","href":"/core-products/damm-v2/fees/overview"},"pages":[{"title":"DAMM v2 Time Scheduler","sidebarTitle":"Time Scheduler","href":"/core-products/damm-v2/fees/time-scheduler"},{"title":"DAMM v2 Market Cap Scheduler","sidebarTitle":"Market Cap Scheduler","href":"/core-products/damm-v2/fees/market-cap-scheduler"},{"title":"DAMM v2 Rate Limiter","sidebarTitle":"Rate Limiter","href":"/core-products/damm-v2/fees/rate-limiter"},{"title":"DAMM v2 Dynamic Fees","sidebarTitle":"Dynamic Fees","href":"/core-products/damm-v2/fees/dynamic-fees"}]},{"title":"DAMM v2 NFT Positions","sidebarTitle":"NFT Positions","href":"/core-products/damm-v2/nft-positions"},{"title":"DAMM v2 Liquidity Mining","sidebarTitle":"Liquidity Mining","href":"/core-products/damm-v2/liquidity-mining"},{"title":"DAMM v2 Token 2022 Support","sidebarTitle":"Token 2022 Support","href":"/core-products/damm-v2/token-2022-support"},{"title":"DAMM v2 Formulas","sidebarTitle":"Formulas","href":"/core-products/damm-v2/formulas"}]},{"group":"DBC","root":{"title":"What is DBC?","sidebarTitle":"What is DBC?","href":"/core-products/dbc/what-is-dbc"},"pages":[{"title":"DBC Universal Curve","sidebarTitle":"Universal Curve","href":"/core-products/dbc/universal-curve"},{"title":"DBC Launch Configuration","sidebarTitle":"Launch Configuration","href":"/core-products/dbc/launch-configurations"},{"group":"DBC Fees","root":{"title":"DBC Fees","sidebarTitle":"Fees Overview","href":"/core-products/dbc/fees/overview"},"pages":[{"title":"DBC Fee Scheduler","sidebarTitle":"Fee Scheduler","href":"/core-products/dbc/fees/fee-scheduler"},{"title":"DBC Rate Limiter","sidebarTitle":"Rate Limiter","href":"/core-products/dbc/fees/rate-limiter"},{"title":"DBC Dynamic Fees","sidebarTitle":"Dynamic Fees","href":"/core-products/dbc/fees/dynamic-fees"}]},{"title":"DBC Migration and Liquidity","sidebarTitle":"Migration and Liquidity","href":"/core-products/dbc/migration-and-liquidity"},{"title":"DBC Surplus and Leftover","sidebarTitle":"Surplus and Leftover","href":"/core-products/dbc/surplus-and-leftover"},{"title":"DBC Token 2022 Support","sidebarTitle":"Token 2022 Support","href":"/core-products/dbc/token-2022-support"},{"title":"DBC Transfer Hook Pools","sidebarTitle":"Transfer Hook Pools","href":"/core-products/dbc/transfer-hook-pools"},{"title":"DBC Accounts and Permissions","sidebarTitle":"Accounts and Permissions","href":"/core-products/dbc/accounts-and-permissions"},{"title":"DBC Formulas","sidebarTitle":"Formulas","href":"/core-products/dbc/formulas"}]}]},{"group":"Helper Products","pages":[{"group":"Presale Vault","root":{"title":"What is Presale Vault?","sidebarTitle":"What is Presale Vault?","href":"/helper-products/presale-vault/what-is-presale-vault"},"pages":[{"title":"Presale Vault Modes","sidebarTitle":"Vault Modes","href":"/helper-products/presale-vault/vault-modes"},{"title":"Presale Vault Configuration Guide","sidebarTitle":"Configuration Guide","href":"/helper-products/presale-vault/configuration-guide"},{"title":"Presale Vault Token 2022 Support","sidebarTitle":"Token 2022 Support","href":"/helper-products/presale-vault/token-2022-support"},{"title":"Presale Vault Access and States","sidebarTitle":"Access and States","href":"/helper-products/presale-vault/access-and-states"},{"title":"Presale Vault Formulas","sidebarTitle":"Formulas","href":"/helper-products/presale-vault/formulas"}]},{"group":"Alpha Vault","root":{"title":"What is Alpha Vault?","sidebarTitle":"What is Alpha Vault?","href":"/helper-products/alpha-vault/what-is-alpha-vault"},"pages":[{"title":"Alpha Vault Modes","sidebarTitle":"Vault Modes","href":"/helper-products/alpha-vault/vault-modes"},{"title":"Alpha Vault Launch Design Guide","sidebarTitle":"Launch Design Guide","href":"/helper-products/alpha-vault/launch-design-guide"},{"title":"Alpha Vault Whitelist and Access","sidebarTitle":"Whitelist and Access","href":"/helper-products/alpha-vault/whitelist-and-access"},{"title":"Alpha Vault Formulas","sidebarTitle":"Formulas","href":"/helper-products/alpha-vault/formulas"}]},{"group":"Dynamic Fee Sharing","root":{"title":"What is Dynamic Fee Sharing?","sidebarTitle":"What is Dynamic Fee Sharing?","href":"/helper-products/dynamic-fee-sharing/what-is-dynamic-fee-sharing"},"pages":[{"title":"Dynamic Fee Sharing Design Guide","sidebarTitle":"Design Guide","href":"/helper-products/dynamic-fee-sharing/design-guide"},{"title":"Dynamic Fee Sharing Compatibilities","sidebarTitle":"Compatibilities","href":"/helper-products/dynamic-fee-sharing/compatibilities"},{"title":"Dynamic Fee Sharing Formulas","sidebarTitle":"Formulas","href":"/helper-products/dynamic-fee-sharing/formulas"}]},{"group":"Zap","root":{"title":"What is Zap?","sidebarTitle":"What is Zap?","href":"/helper-products/zap/what-is-zap"},"pages":[{"title":"Zap Compatibilities","sidebarTitle":"Compatibilities","href":"/helper-products/zap/compatibilities"},{"title":"Zap Formulas and Limits","sidebarTitle":"Formulas and Limits","href":"/helper-products/zap/formula-and-limits"}]}]},{"group":"Legacy Products","pages":[{"group":"DAMM v1","root":{"title":"What is DAMM v1?","sidebarTitle":"What is DAMM v1?","href":"/legacy-products/damm-v1/what-is-damm-v1"},"pages":[{"title":"DAMM v1 Stable Pools","sidebarTitle":"Stable Pools","href":"/legacy-products/damm-v1/stable-pools"},{"title":"DAMM v1 LST Pools","sidebarTitle":"LST Pools","href":"/legacy-products/damm-v1/lst-pools"},{"title":"Dynamic Vault Yield","sidebarTitle":"Dynamic Vault Yield","href":"/legacy-products/damm-v1/dynamic-vaults-yield"},{"title":"DAMM v1 Pools With Farms","sidebarTitle":"Pools With Farms","href":"/legacy-products/damm-v1/pools-with-farms"},{"title":"DAMM v1 Liquidity Locks","sidebarTitle":"Liquidity Locks","href":"/legacy-products/damm-v1/liquidity-locks"},{"title":"DAMM v1 Fee and APY Calculation","sidebarTitle":"Fee and APY Calculation","href":"/legacy-products/damm-v1/damm-v1-fee-and-apy-calculation"},{"title":"DAMM v1 Pool Design Guide","sidebarTitle":"Pool Design Guide","href":"/legacy-products/damm-v1/pool-design-guide"},{"title":"DAMM v1 Implementation and Limits","sidebarTitle":"Implementation and Limits","href":"/legacy-products/damm-v1/implementation-and-limits"},{"title":"DAMM v1 Formulas","sidebarTitle":"Formulas","href":"/legacy-products/damm-v1/damm-v1-formulas"}]},{"group":"Dynamic Vault","root":{"title":"What is Dynamic Vault?","sidebarTitle":"What is Dynamic Vault?","href":"/legacy-products/dynamic-vault/what-is-dynamic-vault"},"pages":[{"group":"Hermes","root":{"title":"What is Hermes?","sidebarTitle":"What is Hermes?","href":"/legacy-products/dynamic-vault/hermes/what-is-hermes"},"pages":[{"title":"Rebalance Crank","sidebarTitle":"Rebalance Crank","href":"/legacy-products/dynamic-vault/hermes/rebalance-crank"}]},{"title":"Dynamic Vault Access and Limits","sidebarTitle":"Access and Limits","href":"/legacy-products/dynamic-vault/access-and-limits"},{"title":"Dynamic Vault Formulas","sidebarTitle":"Formulas","href":"/legacy-products/dynamic-vault/formulas"}]},{"group":"Stake2Earn","root":{"title":"What is Stake2Earn?","sidebarTitle":"What is Stake2Earn?","href":"/legacy-products/stake2earn/what-is-stake2earn"},"pages":[{"title":"Stake2Earn Configuration and Limits","sidebarTitle":"Configuration and Limits","description":"Review Stake2Earn setup requirements, supported tokens, production limits, admin updates, list behavior, and operational edge cases.","href":"/legacy-products/stake2earn/configuration-and-limits"},{"title":"Stake2Earn Formulas","sidebarTitle":"Formulas","href":"/legacy-products/stake2earn/formulas"}]}]}]},{"tab":"Developer Guides","menu":[{"item":"DLMM","icon":"arrows-to-circle","pages":[{"title":"DLMM","href":"/developer-guides/dlmm"}]},{"item":"DAMM v2","icon":"calculator-simple","pages":[{"title":"DAMM v2","href":"/developer-guides/damm-v2"}]},{"item":"DBC","icon":"chart-simple","pages":[{"title":"DBC","href":"/developer-guides/dbc"}]},{"item":"Presale Vault","icon":"gavel","pages":[{"title":"Presale Vault","href":"/developer-guides/presale-vault"}]},{"item":"Alpha Vault","icon":"box","pages":[{"title":"Alpha Vault","href":"/developer-guides/alpha-vault"}]},{"item":"Dynamic Fee Sharing","icon":"money-bill-wave","pages":[{"title":"Dynamic Fee Sharing","href":"/developer-guides/dynamic-fee-sharing"}]},{"item":"Zap","icon":"bolt-lightning","pages":[{"title":"Zap","href":"/developer-guides/zap"}]},{"item":"DAMM v1","icon":"calculator","pages":[{"title":"DAMM v1","href":"/developer-guides/damm-v1"}]},{"item":"Dynamic Vault","icon":"vault","pages":[{"title":"Dynamic Vault","href":"/developer-guides/dynamic-vault"}]},{"item":"Stake2Earn","icon":"steak","pages":[{"title":"Stake2Earn","href":"/developer-guides/stake2earn"}]}],"pages":[{"title":"Developer Guides","href":"/developer-guides/dlmm"}]},{"tab":"Invent","pages":[{"title":"Invent","href":"/invent/actions"}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/agents/overview"}]},{"tab":"Protocol","pages":[{"title":"Protocol","href":"/protocol/protocol-revenues"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/audits/overview"}]}]},"basePath":"","title":"Stake2Earn Formulas - Meteora Documentation","buildId":"dpl_2gSLkbMoF5kkLsBqYzq9KWtDyJRo","deploymentId":"dpl_2gSLkbMoF5kkLsBqYzq9KWtDyJRo","dynamics":[],"chunks":[]}