mangrovedao/mangrove.js

`OfferLogic`'s `approveToken` and `approveMangrove` doesn't take overrides as expected

jkrivine opened this issue · 1 comments

Describe the bug
OfferLogic.approveToken("aDAI", overrides); ignores the overrides.
Instead one should do:
approveToken("aDAI", {}, overrides); which is counter intuitive

This is due to ts not handling two optional arguments properly

Same problem applies to approveMangrove. In general all API's approval should be modified to avoid this issue.