-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
52eb23f
to
c26cd09
Compare
c26cd09
to
aa6abe9
Compare
Changes unknown when pulling d1b50d3 on dos-getAvailableFunds into ** on main**. |
and more merge conflicts here @zajck |
fwiw, I would have totally just removed the "name" field, and make that the client's problem, but i like the solution here nonetheless... |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
Fixes #546
And also alleviates the consequences of #322 and #679