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

POC - Automatic/Default Rate Limit Creation #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bonedaddy
Copy link
Collaborator

@bonedaddy bonedaddy commented Aug 18, 2023

notes:

  • for proper implementation should move automatic rate limit creation to OnChannelOpenConfirm

contract := im.ics4Middleware.GetContractAddress(ctx)
if contract == "" {
// The contract has not been configured. Continue as usual
return im.app.OnRecvPacket(ctx, packet, relayer)
}

// todo: move to OnChanOpenConfirm (however this requires figuring out how to extract a packet there)

Choose a reason for hiding this comment

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

we probably want to figure out this before merging. on OnChanOpenConfirm we don't have access to the denom which may make this hard. An option might be to to add the rate limit with a channel "any" on denom creation

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.

None yet

2 participants