Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpcodeSupply = 0x1 OpcodeWithdraw = 0x2 OpcodeLiquidate = 0x3 OpcodeJettonTransfer = 0xf8a7ea5 OpcodeOnchainGetter = 0x9998 )
View Source
const ( FactorScale = 1e12 AssetCoefficientScale = 10_000 AssetPriceScale = 1e9 AssetReserveFactorScale = 10_000 AssetLiquidationReserveFactorScale = 10_000 AssetOriginationFeeScale = 1e9 AssetLiquidationThresholdScale = 10_000 AssetLiquidationBonusScale = 10_000 AssetSRateScale = 1e12 AssetBRateScale = 1e12 CollateralWorthThreshold = 100 * AssetPriceScale // literally 100$ )
View Source
const ( FeeSupply = 3e8 FeeWithdraw = 35e7 FeeSupplyJetton = 35e7 FeeSupplyJettonFWD = 3e8 FeeLiquidation = 8e8 FeeLiquidationJetton = 1 FeeLiquidationJettonFWD = 8e8 )
View Source
const ( CodeLending = "" /* 564-byte string literal not displayed */ CodeWalletUSDT = "b5ee9c72010101010023000842028f452d7a4dfd74066b682365177259ed05734435be76b5fd4bd5d8af2b7c3d68" CodeWalletTSTON = "b5ee9c724101010100230008420212bebb0dc8e202b7e26f721e2547e16bb9ebaec934f657d19f22e76d62bec8786eb568d4" CodeWalletSTTON = "" /* 1756-byte string literal not displayed */ CodeWalletSTTONTestnet = "" /* 1756-byte string literal not displayed */ CodeWalletStandard = "" /* 1826-byte string literal not displayed */ CodeWalletStandardTestnet = "" /* 1638-byte string literal not displayed */ CodeWalletTonUsdtDeDust = "" /* 1672-byte string literal not displayed */ CodeWalletTonStorm = "" /* 1824-byte string literal not displayed */ CodeWalletUsdtStorm = CodeWalletTonStorm )
View Source
const ( MasterMainnet = "EQC8rUZqR_pWV1BylWUlPNBzyiTYVoBEmQkMIQDZXICfnuRr" MasterTestnet = "EQDLsg3w-iBj26Gww7neYoJAxiT2t77Zo8ro56b0yuHsPp3C" LpMainnet = "EQBIlZX2URWkXCSg3QF2MJZU-wC5XkBoLww-hdWk2G37Jc6N" )
View Source
const ( MainnetVersion = 6 TestnetVersion = 1 LpVersion = 3 )
View Source
const ( USDTJettonAddress = "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs" JUSDTJettonAddress = "EQBynBO23ywHy_CgarY9NK9FTz0yDsG82PtcbSTQgGoXwiuA" JUSDCJettonAddress = "EQB-MPwrd1G6WKNkLz_VnV6WqBDd142KMQv-g1O-8QUA3728" STTONJettonAddress = "EQDNhy-nxYFgUqzfUzImBEP67JqsyMIcyk2S5_RwNNEYku0k" TSTONJettonAddress = "EQC98_qAmNEptUtPc7W6xdHh_ZHrBUFpw5Ft_IzNU20QAJav" TONUSDTDeDustJettonAddress = "EQA-X_yo3fzzbDbJ_0bzFWKqtRuZFIRa1sJsveZJ1YpViO3r" TONUSDTStonfiJettonAddress = "EQD8TJ8xEWB1SpnRE4d89YO3jl0W0EiBnNS4IBaHaUmdfizE" TONStormJettonAddress = "EQCNY2AQ3ZDYwJAqx_nzl9i9Xhd_Ex7izKJM6JTxXRnO6n1F" USDTStormJettonAddress = "EQCup4xxCulCcNwmOocM9HtDYPU8xe0449tQLp6a-5BLEegW" JUSDTJettonAddressTestnet = "kQBe4gtSQMxM5RpMYLr4ydNY72F8JkY-icZXG1NJcsju8XM7" JUSDCJettonAddressTestnet = "kQDaY5yUatYnHei73HBqRX_Ox9LK2XnR7XuCY9MFC2INbfYI" STTONJettonAddressTestnet = "kQC3Duw3dg8k98xf5S7Bm7YOWVJ5QW8hm3iLqFfJfa_g9h07" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetConfig ¶
type AssetConfig struct { Name Asset ID *big.Int Decimals int JettonMasterAddress *address.Address JettonWalletCode *cell.Cell }
func (*AssetConfig) GetJettonWalletAddress ¶
type Config ¶
type Config struct { MasterAddress *address.Address MasterVersion int64 MasterParams *MasterParams Oracles []*OracleNFT MinimalOracles int Assets map[string]*AssetConfig LendingCode *cell.Cell }
func GetLpMainnetConfig ¶
func GetLpMainnetConfig() *Config
func GetMainMainnetConfig ¶
func GetMainMainnetConfig() *Config
func GetMasterTestnetConfig ¶
func GetMasterTestnetConfig() *Config
type MasterParams ¶
type MasterParams struct { FactorScale *big.Int AssetCoefficientScale *big.Int AssetPriceScale *big.Int AssetReserveFactorScale *big.Int AssetLiquidationReserveFactorScale *big.Int AssetOriginationFeeScale *big.Int AssetLiquidationThresholdScale *big.Int AssetLiquidationBonusScale *big.Int AssetSRateScale *big.Int AssetBRateScale *big.Int CollateralWorthThreshold *big.Int }
func GetMasterParams ¶
func GetMasterParams() *MasterParams
Click to show internal directories.
Click to hide internal directories.