Skip to content

Conversation

@hanzel98
Copy link
Contributor

@hanzel98 hanzel98 commented Mar 6, 2025

What?

  • The streaming enforcers needed an improvement in the function getAvailableAmount() to include the terms as an input, this allows to simulate the availableAmount before doing an initial transfer/claim.
  • Changed the order of the function inputs to match other similar enforcers
  • Added tests style improvements and new tests

Why?

  • Before doing the first transfer/claim the allowance state is empty, and this provokes an error on the function getAvailableAmount, but adding the terms allows to estimate the available amount.

@hanzel98 hanzel98 requested a review from a team as a code owner March 6, 2025 02:38
@hanzel98 hanzel98 changed the title Improve Streaming Enforcer getAvailableAmount Improve Streaming Enforcers getAvailableAmount function Mar 6, 2025
@hanzel98 hanzel98 self-assigned this Mar 6, 2025
@hanzel98 hanzel98 merged commit 05f8e86 into main Mar 7, 2025
4 checks passed
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.

3 participants