I tested it, and it’s currently broken, yes.
Technically, to make it work, at least add_to_serializer needs to be fixed, and bootbox should be replaced by dialog. This works for me on my dev instance.^
EDIT: can you try this fork? GitHub - Arkshine/discourse-topic-trade-buttons · GitHub