This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]; |