shapeshift / yearn-router

Shapeshift's affiliate router for Yearn
GNU Affero General Public License v3.0
0 stars 2 forks source link

adds invariant check per internal audit #8

Closed 0xean closed 2 years ago

0xean commented 2 years ago

adds a modifier to enforce that the token balance of our contract does not change during any external call

Note that we do not check against the vault token balances since this would be very gas intensive for each caller and this should serve as a good enough proxy.