You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
In some cases hydradex.org will not swap and the error Send Failed : mandatory-script-verify-flag-failed (Signature is found in scriptCode) (code 16) will be displayed.
Wallet used to replicate the error on devnet:
Address: HQyFULzdyYv4jQiwsHVhDRVrxB8EshWjEX
Image with the last tx in the wallet (coinbase tx) when the issue occurs:
Findings:
The error occurs when the UXTO used for the swap has a coinbase transaction (empty first tx, with reward from staking);
Making a transaction to send 10 Hydras to the same wallet does not help circumvent the error in this particular case, because the staking wallet uses for the send tx the smallest suitable UTXO, while the DEX likely tries to use the biggest available UTXO, which happens to be a coinbase UTXO;
Making a transaction to send the whole balance to the same wallet helps circumvent the error, becasue then the biggest available UTXO is no longer a coinbase UTXO.