Flex
Flex exchange system
|
XchgPair contract interface. More...
#include <XchgPair.hpp>
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) |
Initialization method, may only be called by Flex root or previous XchgPair. More... | |
XchgPairDetails | requestDetails () |
Request contract details (by internal message) | |
void | setNext (address next) |
Set next pair address. | |
void | unlist () |
Set unlisted flag. | |
XchgPairDetails | getDetails () |
Get contract details. | |
XchgPairSalt | getConfig () |
Get XchgPair configuration from code salt (common for all pairs of one flex) | |
cell | getPriceXchgCode (bool salted) |
Get PriceXchg contract code with configuration salt added. | |
cell | getPriceXchgSalt () |
Get PriceXchg salt (configuration) for this pair. | |
XchgPair contract interface.
void onDeploy | ( | uint128 | min_amount, |
uint128 | minmove, | ||
uint128 | price_denum, | ||
uint128 | deploy_value, | ||
address | notify_addr, | ||
Tip3Config | major_tip3cfg, | ||
Tip3Config | minor_tip3cfg | ||
) |
Initialization method, may only be called by Flex root or previous XchgPair.
min_amount | Minimum amount of major tokens for a deal or an order |
minmove | Minimum move for price |
price_denum | Price denominator for the pair |
deploy_value | Crystals to be kept in the contract |
notify_addr | Notification address (AMM) |
major_tip3cfg | Major tip3 configuration |
minor_tip3cfg | Minor tip3 configuration |