Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎗️ Feeless calls #431

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

🎗️ Feeless calls #431

wants to merge 1 commit into from

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented Dec 4, 2024

What?

Refund the extrinsic execution fee for calls that require a JWT

Why?

The fee payment is used to avoid spamming and stalling the chain, but all JWT calls from regular KYCs need to either pay a fee with OTM, or lock up PLMC.

And the other ones are locked behind an institutional JWT, so even if they act malicious we could check who they are and take action.

This should provide better UX, since you can say you spend 100USDT and spend 100USDT, instead of 100.03

How?

Instead of returning Ok(()) return

Ok(PostDispatchInfo{
   actual_weight: None,
   pays_fee: Pays::No,
})

Testing?

Tests don't include fee payments for extrinsics. So only way I can see to test this is creating a network with chopsticks/zombienet and trying it out ourselves.

For now it hasn't been tested, but its a simple change so should work.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@JuaniRios JuaniRios changed the title feeless calls 🎗️ Feeless calls Dec 4, 2024
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.

1 participant