Gearbox-protocol / core-v3

Other
28 stars 4 forks source link

fix: make bot required permissions check strict #254

Closed lekhovitsky closed 1 month ago

lekhovitsky commented 1 month ago

Fixes https://github.com/spearbit-audits/review-gearbox/issues/25

StErMi commented 1 month ago

The BotListV3.setBotPermissions function now correctly reverts if the user tries to give more permission than the minimum one required by the bot. The documentation and revert reason have been updated accordingly.