Token Integration Issue
When integrating various token types into FanX, certain tokens may pose challenges due to their intrinsic behaviors. Two major categories require special handling:
Fee-on-Transfer Tokens
Fee-on-transfer tokens deduct a small percentage from each transaction. This behavior can disrupt protocol logic that assumes exact transfer amounts. In FanX, these tokens:
May not function reliably with standard swap or router mechanisms.
Could lead to mismatched balances and eventual swap failure.
Mitigation strategies:
Token creators can deploy a wrapper contract that normalizes transfers by handling fees internally.
Alternatively, a custom router tailored to fee-on-transfer logic can be implemented to manage deductions transparently.
Rebasing Tokens
Rebasing tokens periodically adjust their balances (e.g., expanding or contracting total supply). While FanX allows pool creation and swaps involving such tokens, LPs may face unexpected outcomes:
If a negative rebase occurs while an LP position is active, the underlying value of provided liquidity may diminish without recourse.
Protocol logic doesn’t compensate for these contractions, exposing LPs to rebase-related loss.
Key consideration:
Integrating rebasing tokens requires LPs and developers to be aware of rebase mechanics and adjust strategies accordingly—whether through risk modeling or alternative pool structures.
Considerations for FanX Integrators
Assess token behavior before integration—tokens with transfer fees or rebasing capabilities should be evaluated carefully.
Use wrappers or custom routers for fee-on-transfer tokens to preserve swap integrity.
Avoid passive strategies for rebasing tokens unless the economic model accounts for supply shifts.
Communicate risks clearly to liquidity providers and users participating in unconventional token types.
Last updated