|
| TestTaker (CrossType cross_type, Amounts const &amount, Quality const &quality, STAmount const &funds, std::uint32_t flags, Rate const &rate_in, Rate const &rate_out) |
|
void | set_funds (STAmount const &funds) |
|
STAmount | get_funds (AccountID const &owner, STAmount const &funds) const override |
|
Amounts | cross (Amounts offer, Quality quality) |
|
std::pair< Amounts, Amounts > | cross (Amounts offer1, Quality quality1, Amounts offer2, Quality quality2) |
|
Amounts | remaining_offer () const |
| Returns the amount remaining on the offer. More...
|
|
Amounts const & | original_offer () const |
| Returns the amount that the offer was originally placed at. More...
|
|
AccountID const & | account () const noexcept |
| Returns the account identifier of the taker. More...
|
|
bool | reject (Quality const &quality) const noexcept |
| Returns true if the quality does not meet the taker's requirements. More...
|
|
CrossType | cross_type () const |
| Returns the type of crossing that is being performed. More...
|
|
Issue const & | issue_in () const |
| Returns the Issue associated with the input of the offer. More...
|
|
Issue const & | issue_out () const |
| Returns the Issue associated with the output of the offer. More...
|
|
bool | unfunded () const |
| Returns true if the taker has run out of funds. More...
|
|
bool | done () const |
| Returns true if order crossing should not continue. More...
|
|
BasicTaker::Flow | do_cross (Amounts offer, Quality quality, AccountID const &owner) |
| Perform direct crossing through given offer. More...
|
|
std::pair< BasicTaker::Flow, BasicTaker::Flow > | do_cross (Amounts offer1, Quality quality1, AccountID const &owner1, Amounts offer2, Quality quality2, AccountID const &owner2) |
| Perform bridged crossing through given offers. More...
|
|
|
void | log_flow (char const *description, Flow const &flow) |
|
Flow | flow_xrp_to_iou (Amounts const &offer, Quality quality, STAmount const &owner_funds, STAmount const &taker_funds, Rate const &rate_out) |
|
Flow | flow_iou_to_xrp (Amounts const &offer, Quality quality, STAmount const &owner_funds, STAmount const &taker_funds, Rate const &rate_in) |
|
Flow | flow_iou_to_iou (Amounts const &offer, Quality quality, STAmount const &owner_funds, STAmount const &taker_funds, Rate const &rate_in, Rate const &rate_out) |
|
Rate | in_rate (AccountID const &from, AccountID const &to) const |
|
Rate | out_rate (AccountID const &from, AccountID const &to) const |
|
Definition at line 32 of file Taker_test.cpp.
Amounts ripple::BasicTaker::remaining_offer |
( |
| ) |
const |
|
inherited |
Returns the amount remaining on the offer.
This is the amount at which the offer should be placed. It may either be for the full amount when there were no crossing offers, or for zero when the offer fully crossed, or any amount in between. It is always at the original offer quality (quality_)
Definition at line 141 of file Taker.cpp.