Skip to content

Move fee abstraction docs to "Build on Celo" section#2163

Merged
palango merged 6 commits intomainfrom
palango/fee-abstraction
Apr 15, 2026
Merged

Move fee abstraction docs to "Build on Celo" section#2163
palango merged 6 commits intomainfrom
palango/fee-abstraction

Conversation

@palango
Copy link
Copy Markdown
Contributor

@palango palango commented Mar 26, 2026

Split the single fee abstraction page into three focused pages:

  • Overview: what fee abstraction is, allowlist, adapters
  • Using Fee Abstraction: practical guide with viem and CLI
  • Adding Fee Currencies: IFeeCurrency interface and implementation

Update all cross-references and redirects.

Split the single fee abstraction page into three focused pages:
- Overview: what fee abstraction is, allowlist, adapters
- Using Fee Abstraction: practical guide with viem and CLI
- Adding Fee Currencies: IFeeCurrency interface and implementation

Update all cross-references and redirects.
@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Mar 26, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
celo-docs 🟢 Ready View Preview Mar 26, 2026, 7:56 PM

Add sections explaining why fee abstraction matters, how it works
at the protocol level, and key use cases.
@palango palango marked this pull request as ready for review March 30, 2026 16:48
@palango palango requested review from a team as code owners March 30, 2026 16:48
@palango palango requested review from piersy and seolaoh and removed request for a team March 30, 2026 16:48
Comment thread build-on-celo/fee-abstraction/overview.mdx Outdated
const hash = await client.sendTransaction({
...{ to, data: dataAfterFeeCalculation },
feeCurrency: USDC_ADAPTER_MAINNET,
});
Copy link
Copy Markdown
Contributor

@piersy piersy Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function seems wrong.

It takes amountInWei, but only uses it to calculate the fee and then sends 1 ether - the fee.

Also it's handling USDC which has 6 decimals so accepting an amount in wei also seems wrong, and using parse ether, which also returns wei!

I find this is pretty confusing, and also unnecessarily complex for an example. I would simplify it to
an example that simply shows sending a given amount determined by the user, rather than removing the fee from the amount to send.

And possibly having one example showing using an adapted token and one example showing using a non adapted token.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted to the original, untouched examples for now.

They might not be perfect, but I think they're not in scope for this PR.

Comment thread build-on-celo/fee-abstraction/overview.mdx Outdated
palango added 2 commits April 7, 2026 12:08
- Move allowlist and adapters sections from overview to using-fee-abstraction
- Fix celocli command to use --node celo for consistency
- Rewrite send example: use parseUnits with correct decimals,
  remove confusing fee subtraction logic, show both adapted (USDC)
  and non-adapted (USDm) token examples
- Move gas estimation to its own section
- Note that viem sets CIP-64 tx type automatically
we can improve them later
Copy link
Copy Markdown
Contributor

@piersy piersy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now

@palango palango merged commit 94770e9 into main Apr 15, 2026
8 checks passed
@palango palango deleted the palango/fee-abstraction branch April 15, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants