Describe the bug
There are several Assert helpers inside the Flamingo contract. All of these halpers use Notify("Fault:" + message); construction, i.e. System.Runtime.Notify syscall with the "Fault:" + message notification name.
The maximum allowed length for the notification name is 32 (see the link). However, method Mint uses Assert(liquidity > 0, "INSUFFICIENT_LIQUIDITY_MINTED");, so the resulting notification name is Fault:INSUFFICIENT_LIQUIDITY_MINTED with the length = 35. This notification will never be emitted because the invocation will be FAULTed due to bad name length.
Please, check that all your notifications names have length <= 32.
Expected behavior
All notifications emitted by Assert functions have the proper length <= 32.
Describe the bug There are several Assert helpers inside the Flamingo contract. All of these halpers use
Notify("Fault:" + message);
construction, i.e.System.Runtime.Notify
syscall with the"Fault:" + message
notification name.The maximum allowed length for the notification name is 32 (see the link). However, method Mint uses
Assert(liquidity > 0, "INSUFFICIENT_LIQUIDITY_MINTED");
, so the resulting notification name isFault:INSUFFICIENT_LIQUIDITY_MINTED
with the length = 35. This notification will never be emitted because the invocation will be FAULTed due to bad name length.Please, check that all your notifications names have length <= 32.
Expected behavior All notifications emitted by
Assert
functions have the proper length <= 32.Platform: