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

Break down fee calculator interfaces #29

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

0xmichalis
Copy link
Member

The pool contract needs to estimate the fee
to charge for a deposit or redemption separately
from executing the distribution of the total fee
to the fee recipients because in between the two
the pool contract needs to either burn the tokens
from the user in case of a redemption or mint tokens
to the user in case of a deposit.

In order to best facilitate this requirement the
current fee calculator interface needs to separate
estimating the fee of a deposit/redemption from
estimating the shares for each fee recipient.

The pool contract needs to estimate the fee
to charge for a deposit or redemption separately
from executing the distribution of the total fee
to the fee recipients because in between the two
the pool contract needs to either burn the tokens
from the user in case of a redemption or mint tokens
to the user in case of a deposit.

In order to best facilitate this requirement the
current fee calculator interface needs to separate
estimating the fee of a deposit/redemption from
estimating the shares for each fee recipient.
Copy link
Contributor

@PawelTroka PawelTroka 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, I was also thinking that this would be nice change

@0xmichalis 0xmichalis merged commit 306d97f into main Dec 20, 2023
1 check passed
@0xmichalis 0xmichalis deleted the refactor-interfaces branch December 20, 2023 15:35
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.

2 participants