Syde Module
Module is a suite of smart contracts that handle the core logic for mint assets, burn assets, swap assets, liquidation, update user sc and check prices
Now let's get down to the more technical side, namely smart contracts and their meaning in the protocol.
common / address_builder - standard method calculate address.
common / contstants - constants with magin numbers who can we use in work on Syde.
common / errors - constants with errors who can we use in work on Syde.
common / op - constants with op-codes who can we use in work on Syde.
common / stdlib - standard library with asm, dict and helpers functions with coding on FunC.
getters / user/admin - user/admin getters "get_jetton_data", "get_wallet_address", "get_all".
logic / master_admin - admin functions (example: admin_make_tx_process, admin_set_store_process, admin_set_code_process). More of this functions on peer-to-peer upgrade admin/user core smart-contract.
logic / master_burn - admin process of burn with verify / unpack prices, verify prices, fees_logic, synth math and functions of burn_process.
logic / master_fees - admin process with fees_process and fees_claim_process.
logic / master_liquidate - very importany admin process of liquidation users wit h erify / unpack prices, user_(un)colateralized_dept_amount, max_dept_amount_to_force_repay_in_usd and redeem_ton_targed, fees_logic.
logic / master_mint - admin process of mint with verify / unpack prices, verify prices, fees_logic, synth math and functions of mint_process.
logic / master_swap - admin process with native swap (in progress).
logic / user_admin - user functions (example: admin_make_tx_process, admin_set_store_process, admin_set_code_process). More of this functions on peer-to-peer upgrade admin/user core smart-contract.
logic / user_burn - user process of burn with burn_request, burn_success, burn_fail.
logic / user_fees - user process of fees with fees_request, fees_claim_success, fees_claim_fail.
logic / user_liquidate - user process of liquidate with liquidate_init, liquidate_request, liquidate_process_success, liquidate_process_fail.
logic / user_mint - user process of mint with mint_request, mint_success and mint_fail.
logic / user_swap - user process of native swap with swap_request, swap_success and swap_fail (in progress).
logic / user_transfer - user process of ton/jetton transfer with send_tokens, request_tokens.
store / admin/user - storage building on global int's with load_storage, save_storage and build_storage.
transactions / send_tx - helper standard msg (example: send_message, send_message_custom_mode, emit_log_simple).
utils / math - helper POW math function.
utils / price_parse - helper price_payload_parse
utils / price_proof_verify - specific functions for proof prices Pyth oracle.
utils / vaa_verify - specific vaa functions for proof prices Pyth oracle.
blank - blank-code - helper for peer-to-peer upgrade user/master smart-contract.
master - master internal function with all of them logic functions.
user - user internal function with all of them logic functions.
Our smart-contracts have specific method for updating data. We have peer-to-peer upgrade logic. Admin take request from master smart-contract and users should update smart-contract with help mint / burn functions. If user don't want update, liquidator doing this.
update / master-revert-call - master revert transactions for update master smart-contract.
update / master - master couple of functions with init, update, disable and fail function for upgrade.
upgrade / upgrade-header - store and load upgrade header.
upgrade / user-messages - parsing liquidate/mint/burn messages from user.
update / user-revert-call - user revert transactions for update master smart-contract.
upgrade / user - user couple of functions with upgrade internal msg.
Last updated