Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2021/07/31 12:00 a.m.13 views

The approveMax function of MStableYieldSource always reverts

Handle shw Vulnerability details Impact The approveMax function of MStableYieldSource calls the safeApprove function to set the allowance to the maximum. However, at the time of call, the allowance should be non-zero since it was set to the maximum in the constructor function. The non-zero...

6.8AI score
SaveExploits0
Code423n4
Code423n4
added 2021/07/31 12:00 a.m.14 views

Usage of safeApprove

Handle pauliax Vulnerability details Impact function approveMax uses safeApprove. This function only works if the current approval is 0. Consider clearing previous approval safeApprove0 before setting the max value again. The same issue can happen with SwappableYieldSource if, for example, source...

6.9AI score
SaveExploits0
Rows per page
Query Builder