SwapyNetwork/swapy-exchange-protocol

Suggestion: merge refuseInvestment and cancelInvestment

icaroharry opened this issue · 0 comments

InvestmentAsset.refuseInvestment and InvestmentAsset.cancelInvestment are the same function, the difference is just the modifiers, the first one being onlyOwner and the second onlyInvestor. So I suggest to merge the functions and create a ownerOrInvestor modifier.