Skip to content

Instantly share code, notes, and snippets.

View Jbekker's full-sized avatar

Jelle Bekker Jbekker

View GitHub Profile
#include "hookapi.h"
// TODO: Parameterize this so that you can specify the minimum allowed payment when deploying the hook.
const int64_t MINIMUM_AMOUNT_IN_DROPS = 100000; // 0.1 XRP
int64_t hook(uint32_t reserved ) {
GUARD(1); // every hook needs to import guard function and use it at least once
unsigned char amount_buffer[48];