Flex
Flex exchange system
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
XchgPair Class Referencefinal

Implements tvm::IXchgPair interface. More...

Inheritance diagram for XchgPair:
Inheritance graph
[legend]
Collaboration diagram for XchgPair:
Collaboration graph
[legend]

Classes

struct  error_code
 To allow deploy message only with onDeploy call. More...
 

Public Member Functions

void onDeploy (uint128 min_amount, uint128 minmove, uint128 price_denum, uint128 deploy_value, address notify_addr, Tip3Config major_tip3cfg, Tip3Config minor_tip3cfg)
 
XchgPairDetails requestDetails ()
 
XchgPairDetails getDetails ()
 
void setNext (address next)
 
void unlist ()
 
address getFlexAddr ()
 
address getTip3MajorRoot ()
 
address getTip3MinorRoot ()
 
uint128 getMinAmount ()
 
uint128 getMinmove ()
 
uint128 getPriceDenum ()
 
address getNotifyAddr ()
 
address getMajorReserveWallet ()
 
address getMinorReserveWallet ()
 
XchgPairSalt getConfig ()
 
cell getPriceXchgCode (bool salted)
 
cell getPriceXchgSalt ()
 
PriceXchgSalt preparePriceXchgSalt (XchgPairSalt cfg)
 

Static Public Member Functions

static int _fallback ([[maybe_unused]] cell msg, [[maybe_unused]] slice msg_body)
 
static int _receive ([[maybe_unused]] cell msg, [[maybe_unused]] slice msg_body)
 

Static Public Attributes

static constexpr bool _checked_deploy = true
 

Additional Inherited Members

- Public Attributes inherited from DXchgPair
address tip3_major_root_
 Address of Wrapper for major tip3 token. Used for address calculation.
 
address tip3_minor_root_
 Address of Wrapper for minor tip3 token. Used for address calculation.
 
uint128 min_amount_
 Minimum amount of major tokens for a deal or an order.
 
uint128 minmove_
 Minimum move for price.
 
uint128 price_denum_
 Price denominator for the pair.
 
address notify_addr_
 Notification address (AMM)
 
address major_reserve_wallet_
 Major reserve wallet.
 
address minor_reserve_wallet_
 Minor reserve wallet.
 
opt< Tip3Config > major_tip3cfg_
 Configuration of the major tip3 token.
 
opt< Tip3Config > minor_tip3cfg_
 Configuration of the minor tip3 token.
 
opt< address > next_
 Next XchgPair address.
 
bool_t unlisted_
 If pair is unlisted.
 

Detailed Description

Implements tvm::IXchgPair interface.


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