Skip to content

Fix exchange fee collection#89

Open
peculiarity wants to merge 2 commits intodevelopfrom
gg/fix-exchange-fee-collection
Open

Fix exchange fee collection#89
peculiarity wants to merge 2 commits intodevelopfrom
gg/fix-exchange-fee-collection

Conversation

@peculiarity
Copy link
Contributor

No description provided.

Copy link
Contributor

@adamskrodzki adamskrodzki left a comment

Choose a reason for hiding this comment

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

Looks ok, commented only on refactoring.

I'm missing clear test failing before and passing after

}

function _collectFee(address asset, uint256 fromAmount) internal returns (uint256) {
function _collectFeeTokenToDai(address asset, uint256 fromAmount) internal returns (uint256) {
Copy link
Contributor

Choose a reason for hiding this comment

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

since "asset" is allways DAI_ADDRESS in both invocation maybe it will be clearer to remove asset parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@peculiarity
Copy link
Contributor Author

Looks ok, commented only on refactoring.

I'm missing clear test failing before and passing after

What do you mean by that?

@peculiarity peculiarity force-pushed the gg/fix-exchange-fee-collection branch from f3ef0fb to e745d4a Compare November 15, 2021 16:17
@peculiarity peculiarity force-pushed the gg/fix-exchange-fee-collection branch from e745d4a to af3ae9d Compare November 15, 2021 17:09
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