|
Flex
Flex exchange system
|
Notifications to AMM about orders. More...
#include <Flex.hpp>
Public Member Functions | |
| void | onXchgDealCompleted (bool seller_is_taker, address pair, address tip3root_major, address tip3root_minor, Tip3Config major_tip3cfg, Tip3Config minor_tip3cfg, uint128 price_num, uint128 price_denum, uint128 amount) |
| Notification about completed exchange deal tip3/tip3. More... | |
| void | onXchgOrderAdded (bool sell, address tip3root_major, address tip3root_minor, uint128 price_num, uint128 price_denum, uint128 amount, uint128 sum_amount) |
| Notification about added exchange order (tip3/tip3) More... | |
| void | onXchgOrderCanceled (bool sell, address tip3root_major, address tip3root_minor, uint128 price_num, uint128 price_denum, uint128 amount, uint128 sum_amount) |
| Notification about canceled exchange order (tip3/tip3) More... | |
Notifications to AMM about orders.
| void onXchgDealCompleted | ( | bool | seller_is_taker, |
| address | pair, | ||
| address | tip3root_major, | ||
| address | tip3root_minor, | ||
| Tip3Config | major_tip3cfg, | ||
| Tip3Config | minor_tip3cfg, | ||
| uint128 | price_num, | ||
| uint128 | price_denum, | ||
| uint128 | amount | ||
| ) |
Notification about completed exchange deal tip3/tip3.
| seller_is_taker | Seller is a taker in deal |
| pair | Address of XchgPair contract |
| tip3root_major | Address of RootTokenContract for the major tip3 token |
| tip3root_minor | Address of RootTokenContract for the minor tip3 token |
| major_tip3cfg | Major tip3 configuration |
| minor_tip3cfg | Minor tip3 configuration |
| price_num | Token price numerator |
| price_denum | Token price denominator |
| amount | Amount of major tip3 tokens in the deal |
| void onXchgOrderAdded | ( | bool | sell, |
| address | tip3root_major, | ||
| address | tip3root_minor, | ||
| uint128 | price_num, | ||
| uint128 | price_denum, | ||
| uint128 | amount, | ||
| uint128 | sum_amount | ||
| ) |
Notification about added exchange order (tip3/tip3)
| sell | Is it a sell order |
| tip3root_major | Address of RootTokenContract for the major tip3 token |
| tip3root_minor | Address of RootTokenContract for the minor tip3 token |
| price_num | Token price numerator |
| price_denum | Token price denominator |
| amount | Amount of major tip3 tokens added in the order |
| sum_amount | Summarized amount of major tokens rest in all orders for this price (sell or buy only) |
| void onXchgOrderCanceled | ( | bool | sell, |
| address | tip3root_major, | ||
| address | tip3root_minor, | ||
| uint128 | price_num, | ||
| uint128 | price_denum, | ||
| uint128 | amount, | ||
| uint128 | sum_amount | ||
| ) |
Notification about canceled exchange order (tip3/tip3)
| sell | Is it a sell order |
| tip3root_major | Address of RootTokenContract for the major tip3 token |
| tip3root_minor | Address of RootTokenContract for the minor tip3 token |
| price_num | Token price numerator |
| price_denum | Token price denominator |
| amount | Amount of major tip3 tokens canceled |
| sum_amount | Summarized amount of major tokens rest in all orders for this price (sell or buy only) |