Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active November 20, 2017 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/afd507b943abe9dfab8b47087c76e8d9 to your computer and use it in GitHub Desktop.
Save deque-blog/afd507b943abe9dfab8b47087c76e8d9 to your computer and use it in GitHub Desktop.
std::vector<Payment> generatePayments(Trade const& trade)
{
std::vector<Payment> payments;
for (Flow const& flow: trade.flows())
payments.push_back(pay(flow, trade.settlementInstructions());
return payments;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment