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

Pay NEAR storage fees during the finalization #36

Open
sept-en opened this issue Dec 14, 2021 · 0 comments
Open

Pay NEAR storage fees during the finalization #36

sept-en opened this issue Dec 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sept-en
Copy link
Contributor

sept-en commented Dec 14, 2021

Now there's a burden for users or us to pay NEAR storage fees to be able to receive the finalization transaction correctly.
Usually, this is ok and being handled by Rainbow Bridge UI, but sometimes when a new token is added and being transferred let's say to the receiver (let's say aurora for example) didn't pay the storage fee before so the proof is used but the transaction didn't succeed.

In our case we can check if the storage is registered for the given account and register it, paying the fee by the event-relayer account. There are some cons that someone could create a bunch of different tokens in order to drain the balance of the event-relayer account, but I don't expect this will happen as there's a requirement to put ~3.5 NEAR for the initial token bridging which is far more than the storage fee required to be paid for the transaction.

Also, as we already have a DB in event-relayer, we may cache if the storage fee is being paid for the specific token in order to reduce the number of additional calls related to the storage functionality.

@sept-en sept-en added the enhancement New feature or request label Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant