Flex
Flex exchange system
Public Member Functions | List of all members
IFlexNotify Interface Reference

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...
 

Detailed Description

Notifications to AMM about orders.

Member Function Documentation

◆ onXchgDealCompleted()

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.

Parameters
seller_is_takerSeller is a taker in deal
pairAddress of XchgPair contract
tip3root_majorAddress of RootTokenContract for the major tip3 token
tip3root_minorAddress of RootTokenContract for the minor tip3 token
major_tip3cfgMajor tip3 configuration
minor_tip3cfgMinor tip3 configuration
price_numToken price numerator
price_denumToken price denominator
amountAmount of major tip3 tokens in the deal

◆ onXchgOrderAdded()

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)

Parameters
sellIs it a sell order
tip3root_majorAddress of RootTokenContract for the major tip3 token
tip3root_minorAddress of RootTokenContract for the minor tip3 token
price_numToken price numerator
price_denumToken price denominator
amountAmount of major tip3 tokens added in the order
sum_amountSummarized amount of major tokens rest in all orders for this price (sell or buy only)

◆ onXchgOrderCanceled()

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)

Parameters
sellIs it a sell order
tip3root_majorAddress of RootTokenContract for the major tip3 token
tip3root_minorAddress of RootTokenContract for the minor tip3 token
price_numToken price numerator
price_denumToken price denominator
amountAmount of major tip3 tokens canceled
sum_amountSummarized amount of major tokens rest in all orders for this price (sell or buy only)

The documentation for this interface was generated from the following file: