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

More flexible getAvailableFunds #698

Merged
merged 9 commits into from
Jul 7, 2023
Merged

More flexible getAvailableFunds #698

merged 9 commits into from
Jul 7, 2023

Conversation

zajck
Copy link
Member

@zajck zajck commented Jun 22, 2023

Fixes #546

And also alleviates the consequences of #322 and #679

@zajck zajck self-assigned this Jun 22, 2023
@coveralls
Copy link

coveralls commented Jun 22, 2023

Coverage Status

Changes unknown when pulling d1b50d3 on dos-getAvailableFunds into ** on main**.

@zajck zajck mentioned this pull request Jun 30, 2023
@mischat
Copy link
Member

mischat commented Jul 6, 2023

and more merge conflicts here @zajck

@mischat mischat added the v2.3.0 label Jul 7, 2023
@mischat
Copy link
Member

mischat commented Jul 7, 2023

fwiw, I would have totally just removed the "name" field, and make that the client's problem, but i like the solution here nonetheless...

Copy link
Contributor

@anajuliabit anajuliabit 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, just some minor suggestions

/**
* @notice Returns list of addresses for which the entity has funds available.
*
* @param _entityId - id of entity for which availability of funds should be checked
Copy link
Contributor

Choose a reason for hiding this comment

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

add _limit and _offset parameters here

/**
* @notice Returns list of addresses for which the entity has funds available.
*
* @param _entityId - id of entity for which availability of funds should be checked
Copy link
Contributor

Choose a reason for hiding this comment

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

add _limit and _offset parameters here

@@ -189,6 +240,8 @@ contract FundsHandlerFacet is IBosonFundsHandler, ProtocolBase {
availableFunds[i].tokenName = tokenName;
availableFunds[i].availableAmount = entityFunds[tokenAddress];
}

return availableFunds;
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for this return exist

@anajuliabit anajuliabit merged commit 02a4d2f into main Jul 7, 2023
@zajck zajck deleted the dos-getAvailableFunds branch August 24, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix code scanning alert - Calls inside a loop
4 participants