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

Add organizational / shared wallets to condition of owner token #53

Open
louilinn opened this issue Sep 22, 2023 · 0 comments
Open

Add organizational / shared wallets to condition of owner token #53

louilinn opened this issue Sep 22, 2023 · 0 comments

Comments

@louilinn
Copy link

In adjacencies.rs we do a check where if we are returning a token to it's token owner meaning there is no receive limit. We should here also check if we send to an org / shared wallet (which are non-ubi-issuing wallet and therefore don't have their own token) because there we have no receive limits either.

if edge.token == *token {

                                if is_return_to_owner {
                                    capacity += edge.capacity
                                } else {
                                    capacity = max(capacity, edge.capacity)
                                }

adding in the condition "or is_to_org" and define that boolean value above.

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

No branches or pull requests

1 participant