The punishment logic for publishing bonds is not very advanced right now. It publishes the bond and deletes the offer from the database.
The logic could be improved, for example, by continuing to monitor the published bonds inputs and do CPFP in case the punished trader tries to double spend the input with a higher fee than the bond.
There could also be logic to send the bond amount to the other trade participant if the offer has already been taken but the escrow locking tx is not completed.
The punishment logic for publishing bonds is not very advanced right now. It publishes the bond and deletes the offer from the database.
The logic could be improved, for example, by continuing to monitor the published bonds inputs and do CPFP in case the punished trader tries to double spend the input with a higher fee than the bond.
There could also be logic to send the bond amount to the other trade participant if the offer has already been taken but the escrow locking tx is not completed.