20#include <test/jtx/rate.h>
22#include <xrpl/basics/contract.h>
23#include <xrpl/protocol/jss.h>
35 Throw<std::runtime_error>(
"rate multiplier out of range");
37 jv[jss::Account] = account.human();
38 jv[jss::TransferRate] =
std::uint32_t(1000000000 * multiplier);
39 jv[jss::TransactionType] = jss::AccountSet;
Immutable cryptographic account descriptor.
Json::Value rate(Account const &account, double multiplier)
Set a transfer rate.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.