Transaction #10875

Hash c63d17d30ba11f212fc080fffcf5181ebea63fdf0a18dbd89cc767d5a1da5d83
Status Success
Timestamp 402 days ago - 3/24/2023, 6:03:40 AM UTC+0
Block 10875
Stamps Used 742
Burned Fee 0.04390533 TAU
From 42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 2
Processor a04b5891ef8cd27095373a4f75b899ec2bc0883c02e506a6a5b55b491998cc3f
Signature cf4555ea9dd0506dfd1d4b5260cd579a098ab65777cb8cbd8ab6435da955e5ab12564f6ca2012b4bac50871258c31461f6334641f2bad3ca34475cb98a81d204
Stamps Supplied 1000
Stamps per TAU 169

Kwargs

code I = importlib balances = Hash(default_value=0) metadata = Hash() W_CHIEF = "ec9decc889a17d4ea22afbd518f767a136f36301a0b1aa9a660f3f71d61f5b2b" W_NIEL = "b26f61e036e0c54951efb64a106f46aaae60571b29b1914a2c72d966d0b04d26" W_LP = "a690e68d8a049ea7c8ad4e16b166e321bd5ebc0dba4dc10d2ea01bf6eed84cca" W_RAIN = "e8dc708028e049397b5baf9579924dde58ce5bebee5655da0b53066117572e73" W_MARKETN = "3466e7576d1b70aef675ee4149b0d83cf21f69f4cfade801249d5afaad7c7ac9" W_CHARITY = "4c66b7ba687222d44df2c3c989ae4cc50185abfcee8ea5356afcc5344c4a5f94" W_BUYBACK = "b22e0df3949428211989867c4e4febd851af3c1c044a8d892e8a07b7034e94dc" W_DEV1 = "42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907" W_DEV2 = "28f7fa3ecbb7d794e623a6692f09a06a912f58ff478a44d034d174dd5e9fac9e" @construct def init(): # Token info balances[W_CHIEF] = 105_000_000_000 balances[W_NIEL] = 4_000_000_000 balances[W_DEV1] = 5000_000_000 balances[W_DEV2] = 5000_000_000 metadata["token_name"] = "do_not_buy_test" metadata["token_symbol"] = "do_not_buy_test" metadata["owners"] = [W_CHIEF, W_NIEL, W_DEV1, W_DEV2 ] # Swap info metadata["swap_token"] = "con_marmite100_contract" metadata["swap_end"] = now + datetime.timedelta( days=180 ) # HOW MANY DAYS TO AGREE ON? 6 MONTHS? metadata["swap_rate"] = decimal("1") # Wallets metadata["rewards_contract"] = "con_distr_rewards_yeti" metadata["LP_wallet"] = W_LP metadata["rain_wallet"] = W_RAIN metadata["marketing_wallet"] = W_MARKETN metadata["charity_wallet"] = W_CHARITY metadata["buyback_wallet"] = W_BUYBACK metadata["burn_wallet"] = "yeti_burn_wallet" metadata["blacklisted_wallets"] = [ "1b6a98bc717d568379218ca87b2b8f67b561ee1e50049da1af8f104270816a6b", W_CHIEF, W_LP, W_RAIN, W_MARKETN, W_CHARITY, W_BUYBACK, ] # Rates metadata["buy_tax"] = decimal("0.09") # 9% metadata["sell_tax"] = decimal("0.09") # 9% metadata["distr_rates"] = { "marketing%": decimal("0"), "LP%": decimal("0.222"), "rewards%": decimal("0.667"), "rain%": decimal("0.111"), "charity%": decimal("0"), "buyback%": decimal("0"), "burn%": decimal("0") } # DEX metadata["dex"] = ["con_rocketswap_official_v1_1"] # Reward token metadata["reward_token"] = "currency" metadata["bridge"] = ["con_lamden_link_bsc_v1", "con_lamden_link_weth_v1"] metadata["transfer_contract"] = "con_yeti_transfer" metadata["transfer_from_contract"] = "con_yeti_transfer_from_1" metadata["sell_function"] = "sell" metadata["buy_function"] = "buy" # governance @export def change_metadata(key: str, value: Any): assert_owner() owners = metadata["owners"] caller = ctx.caller if key == "distr_rates": validate_distr_rates(value=value) metadata[caller, key] = {"v": value, "time": now} agreed = False for owner in owners: if metadata[owner, key] is None: # Without this initial value, we cannot later compare the proposed value "v" metadata[owner, key] = {"v": "", "time": ""} # Ensure caller's proposed value is not compared to itself if owner != caller and metadata[owner, key]["v"] == metadata[caller, key]["v"]: metadata[key] = value agreed = True if agreed: for owner in owners: # Prevent proposed value been used again by some owner in the future metadata[caller, key] = str(now) return f"{key} = {value}" return agreed @export def mint(amount: float, to: str): assert ctx.caller in metadata["bridge"], "Only bridge can mint!" assert amount > 0, "Cannot mint negative balances!" balances[to] += amount @export def transfer(amount: float, to: str): assert amount > 0, "Cannot send negative balances!" signer = ctx.signer caller = ctx.caller contract_name, contract_method = ctx.entry assert balances[caller] >= amount, "Not enough YETI to send!" if contract_name in metadata["dex"]: tax_amount = amount * metadata["buy_tax"] transfer = I.import_module(metadata["transfer_contract"]) amount_2 = transfer.transfer(ctx_signer=signer,contract= contract_name, contract_method=contract_method,amount=amount, owners=metadata["owners"], tax_amount=tax_amount) balances[caller] -= amount balances[to] += amount_2 if signer not in metadata["owners" ] and contract_method == metadata["buy_function"]: # Transfers to YETI fund wallets balances[metadata["marketing_wallet"] ] += tax_amount * metadata["distr_rates"]["marketing%"] balances[metadata["LP_wallet"]] += tax_amount * metadata["distr_rates"]["LP%"] balances[metadata["rewards_contract"]] += tax_amount * metadata["distr_rates"]["rewards%"] balances[metadata["rain_wallet"]] += tax_amount * metadata["distr_rates"]["rain%"] balances[metadata["charity_wallet"]] += tax_amount * metadata["distr_rates"]["charity%"] balances[metadata["buyback_wallet"]] += tax_amount * metadata["distr_rates"]["buyback%"] balances[metadata["burn_wallet"]] += tax_amount * metadata["distr_rates"]["burn%"] else: balances[caller] -= amount balances[to] += amount @export def approve(amount: float, to: str): assert amount > 0, "Cannot send negative balances!" caller = ctx.caller balances[caller, to] += amount return balances[caller, to] @export def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, "Cannot send negative balances!" caller = ctx.caller contract_name, contract_method = ctx.entry if contract_name in metadata["dex"]: tax_amount = amount * metadata["sell_tax"] transfer_from = I.import_module(metadata["transfer_from_contract"]) amount_2 = transfer_from.transfer_from(caller=caller,contract= contract_name, contract_method=contract_method, amount=amount, to=caller, main_account=main_account, tax_amount=tax_amount) balances[main_account, caller] -= amount balances[main_account] -= amount balances[to] += amount_2 if contract_method == metadata["sell_function"]: if amount == amount_2: balances[main_account, caller] -= tax_amount balances[main_account] -= tax_amount # Transfers to YETI fund wallets balances[metadata["marketing_wallet"] ] += tax_amount * metadata["distr_rates"]["marketing%"] balances[metadata["LP_wallet"]] += tax_amount * metadata["distr_rates"]["LP%"] balances[metadata["rewards_contract"]] += tax_amount * metadata["distr_rates"]["rewards%"] balances[metadata["rain_wallet"]] += tax_amount * metadata["distr_rates"]["rain%"] balances[metadata["charity_wallet"]] += tax_amount * metadata["distr_rates"]["charity%"] balances[metadata["buyback_wallet"]] += tax_amount * metadata["distr_rates"]["buyback%"] balances[metadata["burn_wallet"]] += tax_amount * metadata["distr_rates"]["burn%"] else: assert balances[main_account, caller ] >= amount, f"Not enough coins approved to send! You have {balances[main_account, caller]} and are trying to spend {amount}" assert balances[main_account] >= amount, "Not enough coins to send!" balances[main_account, caller] -= amount balances[main_account] -= amount balances[to] += amount @export def swap_token(amount: float): caller = ctx.caller assert amount > 0, "Cannot send negative balances!" assert caller not in metadata["blacklisted_wallets"], "This wallet is blacklisted" assert not caller.startswith("con_"), "Caller is a contract!" assert balances[W_CHIEF ] > amount, f"Token amount left is {balances[W_CHIEF]} and you are trying to swap for {amount}" assert now < metadata["swap_end"], "Swap is over!" contract = metadata["swap_token"] swap_token = I.import_module(contract) swap_token.transfer_from(amount=amount, to=metadata["burn_wallet"], main_account=caller) amount_of_yeti = amount * metadata["swap_rate"] balances[caller] += amount_of_yeti balances[W_CHIEF] -= amount_of_yeti @export def execute_proposal_after_a_month(key: str): assert_owner() caller = ctx.caller assert metadata[caller, key], "Proposal does not exist!" assert now > metadata[caller, key]["time"] + datetime.timedelta(weeks=4 ), "Proposal must be 1 month old!" metadata[key] = metadata[caller, key]["v"] return True @export def sell_yeti_for_rewards(cost_of_distr: float): assert_owner() rewards_contract = I.import_module(metadata["rewards_contract"]) rewards_contract.sell_yeti_for_rewards(cost_of_distr=cost_of_distr, reward_token=metadata["reward_token"]) @export def distribute_rewards(addresses: list, amounts: list): assert_owner() rewards_contract = I.import_module(metadata["rewards_contract"]) rewards_contract.distribute_rewards(reward_token=metadata[ "reward_token"], addresses=addresses, amounts=amounts) def validate_distr_rates(value: Any): r = {"marketing%", "LP%", "rewards%", "rain%", "charity%", "buyback%", "burn%"} s , t = set(), 0 for rk in list(value.keys()): s.add(rk) assert s == r, "Key missing or mispelled!" for k, v in value.items(): t += v assert t == 1, "Ratios do not sum to 1!" def assert_owner(): assert ctx.caller in metadata["owners" ], "Only owner can call this method!"
name con_test_add_liq

State Changes

Contract con_test_add_liq
Variable balances
Key ec9decc889a17d4ea22afbd518f767a136f36301a0b1aa9a660f3f71d61f5b2b
New Value 105000000000
 
Contract con_test_add_liq
Variable balances
Key b26f61e036e0c54951efb64a106f46aaae60571b29b1914a2c72d966d0b04d26
New Value 4000000000
 
Contract con_test_add_liq
Variable balances
Key 42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907
New Value 5000000000
 
Contract con_test_add_liq
Variable balances
Key 28f7fa3ecbb7d794e623a6692f09a06a912f58ff478a44d034d174dd5e9fac9e
New Value 5000000000
 
Contract con_test_add_liq
Variable metadata
Key token_name
New Value do_not_buy_test
 
Contract con_test_add_liq
Variable metadata
Key token_symbol
New Value do_not_buy_test
 
Contract con_test_add_liq
Variable metadata
Key owners
New Value ["ec9decc889a17d4ea22afbd518f767a136f36301a0b1aa9a660f3f71d61f5b2b","b26f61e036e0c54951efb64a106f46aaae60571b29b1914a2c72d966d0b04d26","42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907","28f7fa3ecbb7d794e623a6692f09a06a912f58ff478a44d034d174dd5e9fac9e"]
 
Contract con_test_add_liq
Variable metadata
Key swap_token
New Value con_marmite100_contract
 
Contract con_test_add_liq
Variable metadata
Key swap_end
New Value 2023,9,20,6,3,41,0
 
Contract con_test_add_liq
Variable metadata
Key swap_rate
New Value 1
 
Contract con_test_add_liq
Variable metadata
Key rewards_contract
New Value con_distr_rewards_yeti
 
Contract con_test_add_liq
Variable metadata
Key LP_wallet
New Value a690e68d8a049ea7c8ad4e16b166e321bd5ebc0dba4dc10d2ea01bf6eed84cca
 
Contract con_test_add_liq
Variable metadata
Key rain_wallet
New Value e8dc708028e049397b5baf9579924dde58ce5bebee5655da0b53066117572e73
 
Contract con_test_add_liq
Variable metadata
Key marketing_wallet
New Value 3466e7576d1b70aef675ee4149b0d83cf21f69f4cfade801249d5afaad7c7ac9
 
Contract con_test_add_liq
Variable metadata
Key charity_wallet
New Value 4c66b7ba687222d44df2c3c989ae4cc50185abfcee8ea5356afcc5344c4a5f94
 
Contract con_test_add_liq
Variable metadata
Key buyback_wallet
New Value b22e0df3949428211989867c4e4febd851af3c1c044a8d892e8a07b7034e94dc
 
Contract con_test_add_liq
Variable metadata
Key burn_wallet
New Value yeti_burn_wallet
 
Contract con_test_add_liq
Variable metadata
Key blacklisted_wallets
New Value ["1b6a98bc717d568379218ca87b2b8f67b561ee1e50049da1af8f104270816a6b","ec9decc889a17d4ea22afbd518f767a136f36301a0b1aa9a660f3f71d61f5b2b","a690e68d8a049ea7c8ad4e16b166e321bd5ebc0dba4dc10d2ea01bf6eed84cca","e8dc708028e049397b5baf9579924dde58ce5bebee5655da0b53066117572e73","3466e7576d1b70aef675ee4149b0d83cf21f69f4cfade801249d5afaad7c7ac9","4c66b7ba687222d44df2c3c989ae4cc50185abfcee8ea5356afcc5344c4a5f94","b22e0df3949428211989867c4e4febd851af3c1c044a8d892e8a07b7034e94dc"]
 
Contract con_test_add_liq
Variable metadata
Key buy_tax
New Value 0.09
 
Contract con_test_add_liq
Variable metadata
Key sell_tax
New Value 0.09
 
Contract con_test_add_liq
Variable metadata
Key distr_rates
New Value {"LP%":{"__fixed__":"0.222"},"burn%":{"__fixed__":"0"},"buyback%":{"__fixed__":"0"},"charity%":{"__fixed__":"0"},"marketing%":{"__fixed__":"0"},"rain%":{"__fixed__":"0.111"},"rewards%":{"__fixed__":"0.667"}}
 
Contract con_test_add_liq
Variable metadata
Key dex
New Value ["con_rocketswap_official_v1_1"]
 
Contract con_test_add_liq
Variable metadata
Key reward_token
New Value currency
 
Contract con_test_add_liq
Variable metadata
Key bridge
New Value ["con_lamden_link_bsc_v1","con_lamden_link_weth_v1"]
 
Contract con_test_add_liq
Variable metadata
Key transfer_contract
New Value con_yeti_transfer
 
Contract con_test_add_liq
Variable metadata
Key transfer_from_contract
New Value con_yeti_transfer_from_1
 
Contract con_test_add_liq
Variable metadata
Key sell_function
New Value sell
 
Contract con_test_add_liq
Variable metadata
Key buy_function
New Value buy
 
Contract con_test_add_liq
Variable __code__
New Value I = importlib __balances = Hash(default_value=0, contract='con_test_add_liq', name='balances' ) __metadata = Hash(contract='con_test_add_liq', name='metadata') W_CHIEF = 'ec9decc889a17d4ea22afbd518f767a136f36301a0b1aa9a660f3f71d61f5b2b' W_NIEL = 'b26f61e036e0c54951efb64a106f46aaae60571b29b1914a2c72d966d0b04d26' W_LP = 'a690e68d8a049ea7c8ad4e16b166e321bd5ebc0dba4dc10d2ea01bf6eed84cca' W_RAIN = 'e8dc708028e049397b5baf9579924dde58ce5bebee5655da0b53066117572e73' W_MARKETN = '3466e7576d1b70aef675ee4149b0d83cf21f69f4cfade801249d5afaad7c7ac9' W_CHARITY = '4c66b7ba687222d44df2c3c989ae4cc50185abfcee8ea5356afcc5344c4a5f94' W_BUYBACK = 'b22e0df3949428211989867c4e4febd851af3c1c044a8d892e8a07b7034e94dc' W_DEV1 = '42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907' W_DEV2 = '28f7fa3ecbb7d794e623a6692f09a06a912f58ff478a44d034d174dd5e9fac9e' def ____(): __balances[W_CHIEF] = 105000000000 __balances[W_NIEL] = 4000000000 __balances[W_DEV1] = 5000000000 __balances[W_DEV2] = 5000000000 __metadata['token_name'] = 'do_not_buy_test' __metadata['token_symbol'] = 'do_not_buy_test' __metadata['owners'] = [W_CHIEF, W_NIEL, W_DEV1, W_DEV2] __metadata['swap_token'] = 'con_marmite100_contract' __metadata['swap_end'] = now + datetime.timedelta(days=180) __metadata['swap_rate'] = decimal('1') __metadata['rewards_contract'] = 'con_distr_rewards_yeti' __metadata['LP_wallet'] = W_LP __metadata['rain_wallet'] = W_RAIN __metadata['marketing_wallet'] = W_MARKETN __metadata['charity_wallet'] = W_CHARITY __metadata['buyback_wallet'] = W_BUYBACK __metadata['burn_wallet'] = 'yeti_burn_wallet' __metadata['blacklisted_wallets'] = [ '1b6a98bc717d568379218ca87b2b8f67b561ee1e50049da1af8f104270816a6b', W_CHIEF, W_LP, W_RAIN, W_MARKETN, W_CHARITY, W_BUYBACK] __metadata['buy_tax'] = decimal('0.09') __metadata['sell_tax'] = decimal('0.09') __metadata['distr_rates'] = {'marketing%': decimal('0'), 'LP%': decimal ('0.222'), 'rewards%': decimal('0.667'), 'rain%': decimal('0.111'), 'charity%': decimal('0'), 'buyback%': decimal('0'), 'burn%': decimal('0')} __metadata['dex'] = ['con_rocketswap_official_v1_1'] __metadata['reward_token'] = 'currency' __metadata['bridge'] = ['con_lamden_link_bsc_v1', 'con_lamden_link_weth_v1' ] __metadata['transfer_contract'] = 'con_yeti_transfer' __metadata['transfer_from_contract'] = 'con_yeti_transfer_from_1' __metadata['sell_function'] = 'sell' __metadata['buy_function'] = 'buy' @__export('con_test_add_liq') def change_metadata(key: str, value: Any): __assert_owner() owners = __metadata['owners'] caller = ctx.caller if key == 'distr_rates': __validate_distr_rates(value=value) __metadata[caller, key] = {'v': value, 'time': now} agreed = False for owner in owners: if __metadata[owner, key] is None: __metadata[owner, key] = {'v': '', 'time': ''} if owner != caller and __metadata[owner, key]['v'] == __metadata[ caller, key]['v']: __metadata[key] = value agreed = True if agreed: for owner in owners: __metadata[caller, key] = str(now) return f'{key} = {value}' return agreed @__export('con_test_add_liq') def mint(amount: float, to: str): assert ctx.caller in __metadata['bridge'], 'Only bridge can mint!' assert amount > 0, 'Cannot mint negative balances!' __balances[to] += amount @__export('con_test_add_liq') def transfer(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' signer = ctx.signer caller = ctx.caller contract_name, contract_method = ctx.entry assert __balances[caller] >= amount, 'Not enough YETI to send!' if contract_name in __metadata['dex']: tax_amount = amount * __metadata['buy_tax'] transfer = I.import_module(__metadata['transfer_contract']) amount_2 = transfer.transfer(ctx_signer=signer, contract= contract_name, contract_method=contract_method, amount=amount, owners=__metadata['owners'], tax_amount=tax_amount) __balances[caller] -= amount __balances[to] += amount_2 if signer not in __metadata['owners' ] and contract_method == __metadata['buy_function']: __balances[__metadata['marketing_wallet'] ] += tax_amount * __metadata['distr_rates']['marketing%'] __balances[__metadata['LP_wallet']] += tax_amount * __metadata[ 'distr_rates']['LP%'] __balances[__metadata['rewards_contract'] ] += tax_amount * __metadata['distr_rates']['rewards%'] __balances[__metadata['rain_wallet']] += tax_amount * __metadata[ 'distr_rates']['rain%'] __balances[__metadata['charity_wallet'] ] += tax_amount * __metadata['distr_rates']['charity%'] __balances[__metadata['buyback_wallet'] ] += tax_amount * __metadata['distr_rates']['buyback%'] __balances[__metadata['burn_wallet']] += tax_amount * __metadata[ 'distr_rates']['burn%'] else: __balances[caller] -= amount __balances[to] += amount @__export('con_test_add_liq') def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' caller = ctx.caller __balances[caller, to] += amount return __balances[caller, to] @__export('con_test_add_liq') def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' caller = ctx.caller contract_name, contract_method = ctx.entry if contract_name in __metadata['dex']: tax_amount = amount * __metadata['sell_tax'] transfer_from = I.import_module(__metadata['transfer_from_contract']) amount_2 = transfer_from.transfer_from(caller=caller, contract= contract_name, contract_method=contract_method, amount=amount, to=caller, main_account=main_account, tax_amount=tax_amount) __balances[main_account, caller] -= amount __balances[main_account] -= amount __balances[to] += amount_2 if contract_method == __metadata['sell_function']: if amount == amount_2: __balances[main_account, caller] -= tax_amount __balances[main_account] -= tax_amount __balances[__metadata['marketing_wallet'] ] += tax_amount * __metadata['distr_rates']['marketing%'] __balances[__metadata['LP_wallet']] += tax_amount * __metadata[ 'distr_rates']['LP%'] __balances[__metadata['rewards_contract'] ] += tax_amount * __metadata['distr_rates']['rewards%'] __balances[__metadata['rain_wallet']] += tax_amount * __metadata[ 'distr_rates']['rain%'] __balances[__metadata['charity_wallet'] ] += tax_amount * __metadata['distr_rates']['charity%'] __balances[__metadata['buyback_wallet'] ] += tax_amount * __metadata['distr_rates']['buyback%'] __balances[__metadata['burn_wallet']] += tax_amount * __metadata[ 'distr_rates']['burn%'] else: assert __balances[main_account, caller ] >= amount, f'Not enough coins approved to send! You have {__balances[main_account, caller]} and are trying to spend {amount}' assert __balances[main_account] >= amount, 'Not enough coins to send!' __balances[main_account, caller] -= amount __balances[main_account] -= amount __balances[to] += amount @__export('con_test_add_liq') def swap_token(amount: float): caller = ctx.caller assert amount > 0, 'Cannot send negative balances!' assert caller not in __metadata['blacklisted_wallets' ], 'This wallet is blacklisted' assert not caller.startswith('con_'), 'Caller is a contract!' assert __balances[W_CHIEF ] > amount, f'Token amount left is {__balances[W_CHIEF]} and you are trying to swap for {amount}' assert now < __metadata['swap_end'], 'Swap is over!' contract = __metadata['swap_token'] swap_token = I.import_module(contract) swap_token.transfer_from(amount=amount, to=__metadata['burn_wallet'], main_account=caller) amount_of_yeti = amount * __metadata['swap_rate'] __balances[caller] += amount_of_yeti __balances[W_CHIEF] -= amount_of_yeti @__export('con_test_add_liq') def execute_proposal_after_a_month(key: str): __assert_owner() caller = ctx.caller assert __metadata[caller, key], 'Proposal does not exist!' assert now > __metadata[caller, key]['time'] + datetime.timedelta(weeks=4 ), 'Proposal must be 1 month old!' __metadata[key] = __metadata[caller, key]['v'] return True @__export('con_test_add_liq') def sell_yeti_for_rewards(cost_of_distr: float): __assert_owner() rewards_contract = I.import_module(__metadata['rewards_contract']) rewards_contract.sell_yeti_for_rewards(cost_of_distr=cost_of_distr, reward_token=__metadata['reward_token']) @__export('con_test_add_liq') def distribute_rewards(addresses: list, amounts: list): __assert_owner() rewards_contract = I.import_module(__metadata['rewards_contract']) rewards_contract.distribute_rewards(reward_token=__metadata[ 'reward_token'], addresses=addresses, amounts=amounts) def __validate_distr_rates(value: Any): r = {'marketing%', 'LP%', 'rewards%', 'rain%', 'charity%', 'buyback%', 'burn%'} s, t = set(), 0 for rk in list(value.keys()): s.add(rk) assert s == r, 'Key missing or mispelled!' for k, v in value.items(): t += v assert t == 1, 'Ratios do not sum to 1!' def __assert_owner(): assert ctx.caller in __metadata['owners' ], 'Only owner can call this method!'
 
Contract con_test_add_liq
Variable __compiled__
New Value e30000000000000000000000000500000040000000733801000065005a01650264006401640264038d035a0365026401640464058d025a0464065a0564075a0664085a0764095a08640a5a09640b5a0a640c5a0b640d5a0c640e5a0d640f641084005a0e650f640183016510651164119c0264126413840483015a12650f640183016513651064149c0264156416840483015a14650f640183016513651064149c0264176418840483015a15650f640183016513651064149c026419641a840483015a16650f64018301651365106510641b9c03641c641d840483015a17650f640183016513641e9c01641f6420840483015a18650f64018301651064219c0164226423840483015a19650f64018301651364249c0164256426840483015a1a650f64018301651b651b64279c0264286429840483015a1c6511642a9c01642b642c84045a1d642d642e84005a1e642f53002930e900000000da10636f6e5f746573745f6164645f6c6971da0862616c616e6365732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da086d65746164617461290272050000007206000000da4065633964656363383839613137643465613232616662643531386637363761313336663336333031613062316161396136363066336637316436316635623262da4062323666363165303336653063353439353165666236346131303666343661616165363035373162323962313931346132633732643936366430623034643236da4061363930653638643861303439656137633861643465313662313636653332316264356562633064626134646331306432656130316266366565643834636361da4065386463373038303238653034393339376235626166393537393932346464653538636535626562656535363535646130623533303636313137353732653733da4033343636653735373664316237306165663637356565343134396230643833636632316636396634636661646538303132343964356166616164376337616339da4034633636623762613638373232326434346466326333633938396165346363353031383561626663656538656135333536616663633533343463346135663934da4062323265306466333934393432383231313938393836376334653466656264383531616633633163303434613864383932653861303762373033346539346463da4034326131336336363437383161323461623461636139373861626236383564396330376566396165363461326166383635613034336533313836613636393037da403238663766613365636262376437393465363233613636393266303961303661393132663538666634373861343464303334643137346464356539666163396563000000000000000000000000080000004300000073440100006401740074013c006402740074023c006403740074033c006403740074043c006404740564053c006404740564063c0074017402740374046704740564073c006408740564093c00740674076a08640a640b8d0117007405640c3c007409640d83017405640e3c00640f740564103c00740a740564113c00740b740564123c00740c740564133c00740d740564143c00740e740564153c006416740564173c0064187401740a740b740c740d740e6707740564193c007409641a83017405641b3c007409641a83017405641c3c007409641d83017409641e83017409641f83017409642083017409641d83017409641d83017409641d830164219c07740564223c0064236701740564243c006425740564263c00642764286702740564293c00642a7405642b3c00642c7405642d3c00642e7405642f3c006430740564313c006400530029324e6c03000000005af96461006c030000000028d65c03006c0300000000720b540400da0f646f5f6e6f745f6275795f74657374da0a746f6b656e5f6e616d65da0c746f6b656e5f73796d626f6cda066f776e657273da17636f6e5f6d61726d6974653130305f636f6e7472616374da0a737761705f746f6b656ee9b40000002901da0464617973da08737761705f656e64da0131da09737761705f72617465da16636f6e5f64697374725f726577617264735f79657469da10726577617264735f636f6e7472616374da094c505f77616c6c6574da0b7261696e5f77616c6c6574da106d61726b6574696e675f77616c6c6574da0e636861726974795f77616c6c6574da0e6275796261636b5f77616c6c6574da10796574695f6275726e5f77616c6c6574da0b6275726e5f77616c6c6574da4031623661393862633731376435363833373932313863613837623262386636376235363165653165353030343964613161663866313034323730383136613662da13626c61636b6c69737465645f77616c6c6574737a04302e3039da076275795f746178da0873656c6c5f746178da01307a05302e3232327a05302e3636377a05302e31313129077a0a6d61726b6574696e67257a034c50257a0872657761726473257a057261696e257a0863686172697479257a086275796261636b257a056275726e25da0b64697374725f7261746573da1c636f6e5f726f636b6574737761705f6f6666696369616c5f76315f31da03646578da0863757272656e6379da0c7265776172645f746f6b656eda16636f6e5f6c616d64656e5f6c696e6b5f6273635f7631da17636f6e5f6c616d64656e5f6c696e6b5f776574685f7631da06627269646765da11636f6e5f796574695f7472616e73666572da117472616e736665725f636f6e7472616374da18636f6e5f796574695f7472616e736665725f66726f6d5f31da167472616e736665725f66726f6d5f636f6e7472616374da0473656c6cda0d73656c6c5f66756e6374696f6eda03627579da0c6275795f66756e6374696f6e290fda0a5f5f62616c616e636573da07575f4348494546da06575f4e49454cda06575f44455631da06575f44455632da0a5f5f6d65746164617461da036e6f77da086461746574696d65da0974696d6564656c7461da07646563696d616cda04575f4c50da06575f5241494eda09575f4d41524b45544eda09575f43484152495459da09575f4255594241434ba90072490000007249000000da00da045f5f5f5f10000000734000000000010801080108010801080108011001080114010c010801080108010801080108010802020114010c010c01080110010c0110010a0108010c02080108010801724b0000002902da036b6579da0576616c756563020000000000000006000000050000004300000073d40000007400830001007401640119007d0274026a037d037c0064026b02722674047c0164038d0101007c01740564049c0274017c037c0066023c0064057d0478627c0244005d5a7d0574017c057c006602190064006b0872686406640664049c0274017c057c0066023c007c057c036b03724274017c057c00660219006407190074017c037c0066021900640719006b0272427c0174017c003c0064087d04714257007c0472d0781c7c0244005d147d0574067405830174017c037c0066023c0071aa57007c009b0064097c019b009d0353007c045300290a4e7214000000722a0000002901724d0000002902da0176da0474696d6546724a000000724e000000547a03203d202907da0e5f5f6173736572745f6f776e6572723f000000da03637478da0663616c6c6572da165f5f76616c69646174655f64697374725f72617465737240000000da037374722906724c000000724d00000072140000007252000000da06616772656564da056f776e657272490000007249000000724a000000da0f6368616e67655f6d65746164617461350000007326000000000206010801060108010a01120104010a0110011201180110010801080104010a0114010e0172570000002902da06616d6f756e74da02746f630200000000000000020000000400000043000000733a00000074006a017402640119006b06731674036402830182017c0064036b047326740364048301820174047c01050019007c00370003003c006400530029054e72310000007a154f6e6c79206272696467652063616e206d696e742172010000007a1e43616e6e6f74206d696e74206e656761746976652062616c616e63657321290572510000007252000000723f000000da0e417373657274696f6e4572726f72723a00000029027258000000725900000072490000007249000000724a000000da046d696e744c0000007306000000000216011001725b00000063020000000000000009000000080000004300000073bc0100007c0064016b047310740064028301820174016a027d0274016a037d0374016a045c027d047d0574057c0319007c006b05733a74006403830182017c047406640419006b06900172987c0074066405190014007d0674076a0874066406190083017d077c076a097c027c047c057c007406640719007c0664088d067d0874057c03050019007c00380003003c0074057c01050019007c08370003003c007c027406640719006b076fb27c057406640919006b02900172b874057406640a1900050019007c067406640b1900640c19001400370003003c0074057406640d1900050019007c067406640b1900640e19001400370003003c0074057406640f1900050019007c067406640b1900641019001400370003003c007405740664111900050019007c067406640b1900641219001400370003003c007405740664131900050019007c067406640b1900641419001400370003003c007405740664151900050019007c067406640b1900641619001400370003003c007405740664171900050019007c067406640b1900641819001400370003003c006e2074057c03050019007c00380003003c0074057c01050019007c00370003003c006400530029194e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a184e6f7420656e6f756768205945544920746f2073656e6421722c0000007227000000723300000072140000002906da0a6374785f7369676e65727205000000da0f636f6e74726163745f6d6574686f6472580000007214000000da0a7461785f616d6f756e7472390000007220000000722a0000007a0a6d61726b6574696e6725721e0000007a034c5025721d0000007a087265776172647325721f0000007a057261696e2572210000007a08636861726974792572220000007a086275796261636b2572240000007a056275726e25290a725a0000007251000000da067369676e65727252000000da05656e747279723a000000723f000000da0149da0d696d706f72745f6d6f64756c65da087472616e73666572290972580000007259000000725f0000007252000000da0d636f6e74726163745f6e616d65725d000000725e0000007263000000da08616d6f756e745f3272490000007249000000724a000000726300000053000000733e00000000021001060106010a0114010e010c010e01060106010e01100110010c010e010c011401100110010c011401100110010c0114010c011401100112021001726300000063020000000000000003000000040000004300000073360000007c0064016b047310740064028301820174016a027d0274037c027c016602050019007c00370003003c0074037c027c0166021900530029034e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573212904725a00000072510000007252000000723a000000290372580000007259000000725200000072490000007249000000724a000000da07617070726f766577000000730800000000021001060114017266000000290372580000007259000000da0c6d61696e5f6163636f756e74630300000000000000090000000900000043000000732c0200007c0064016b047310740064028301820174016a027d0374016a035c027d047d057c047404640319006b06900172b07c0074046404190014007d0674056a0674046405190083017d077c076a077c037c047c057c007c037c027c0664068d077d0874087c027c036602050019007c00380003003c0074087c02050019007c00380003003c0074087c01050019007c08370003003c007c057404640719006b02900272287c007c086b0272ce74087c027c036602050019007c06380003003c0074087c02050019007c06380003003c007408740464081900050019007c06740464091900640a19001400370003003c0074087404640b1900050019007c06740464091900640c19001400370003003c0074087404640d1900050019007c06740464091900640e19001400370003003c0074087404640f1900050019007c06740464091900641019001400370003003c007408740464111900050019007c06740464091900641219001400370003003c007408740464131900050019007c06740464091900641419001400370003003c007408740464151900050019007c06740464091900641619001400370003003c006e7874087c027c03660219007c006b05900173de7400641774087c027c03660219009b0064187c009b009d048301820174087c0219007c006b05900173f4740064198301820174087c027c036602050019007c00380003003c0074087c02050019007c00380003003c0074087c01050019007c00370003003c0064005300291a4e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e63657321722c00000072280000007235000000290772520000007205000000725d000000725800000072590000007267000000725e00000072370000007220000000722a0000007a0a6d61726b6574696e6725721e0000007a034c5025721d0000007a087265776172647325721f0000007a057261696e2572210000007a08636861726974792572220000007a086275796261636b2572240000007a056275726e257a2c4e6f7420656e6f75676820636f696e7320617070726f76656420746f2073656e642120596f752068617665207a1920616e642061726520747279696e6720746f207370656e64207a194e6f7420656e6f75676820636f696e7320746f2073656e64212909725a000000725100000072520000007260000000723f00000072610000007262000000da0d7472616e736665725f66726f6d723a000000290972580000007259000000726700000072520000007264000000725d000000725e0000007268000000726500000072490000007249000000724a00000072680000007f00000073480000000002100106010a010e010c010e01060106010c011401100110010e010801140110010c011401100110010c011401100110010c0114010c011401100112020a01240116011401100172680000002901725800000063010000000000000005000000050000004300000073cc00000074006a017d017c0064016b04731674026402830182017c017403640319006b07732a74026404830182017c016a04640583010c00733e74026406830182017405740619007c006b047362740264077405740619009b0064087c009b009d048301820174077403640919006b0073767402640a830182017403640b19007d0274086a097c0283017d037c036a0a7c007403640c19007c01640d8d0301007c007403640e190014007d0474057c01050019007c04370003003c0074057406050019007c04380003003c0064005300290f4e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e6365732172260000007a1a546869732077616c6c657420697320626c61636b6c6973746564da04636f6e5f7a1543616c6c6572206973206120636f6e7472616374217a15546f6b656e20616d6f756e74206c656674206973207a2020616e6420796f752061726520747279696e6720746f207377617020666f722072190000007a0d53776170206973206f76657221721600000072240000002903725800000072590000007267000000721b000000290b72510000007252000000725a000000723f000000da0a73746172747377697468723a000000723b000000724000000072610000007262000000726800000029057258000000725200000072050000007216000000da0e616d6f756e745f6f665f7965746972490000007249000000724a0000007216000000a8000000731e0000000002060110010e010601140106011e01140108010a010c0108010c01100172160000002901724c000000630100000000000000020000000500000043000000736000000074008300010074016a027d0174037c017c006602190073207404640183018201740574037c017c00660219006402190074066a07640364048d0117006b047348740464058301820174037c017c00660219006406190074037c003c006407530029084e7a1850726f706f73616c20646f6573206e6f7420657869737421724f000000e9040000002901da057765656b737a1d50726f706f73616c206d7573742062652031206d6f6e7468206f6c6421724e000000542908725000000072510000007252000000723f000000725a0000007240000000724100000072420000002902724c000000725200000072490000007249000000724a000000da1e657865637574655f70726f706f73616c5f61667465725f615f6d6f6e7468bb000000730e0000000002060106011401220106011401726e0000002901da0d636f73745f6f665f6469737472630100000000000000020000000400000043000000732a00000074008300010074016a0274036401190083017d017c016a047c0074036402190064038d0201006400530029044e721d000000722e0000002902726f000000722e0000002905725000000072610000007262000000723f000000da1573656c6c5f796574695f666f725f726577617264732902726f000000721d00000072490000007249000000724a0000007270000000c60000007308000000000206010e01060172700000002902da09616464726573736573da07616d6f756e7473630200000000000000030000000500000043000000732c00000074008300010074016a0274036401190083017d027c026a047403640219007c007c0164038d0301006400530029044e721d000000722e0000002903722e000000727100000072720000002905725000000072610000007262000000723f000000da12646973747269627574655f72657761726473290372710000007272000000721d00000072490000007249000000724a0000007273000000ce0000007308000000000206010e01060172730000002901724d0000006301000000000000000700000007000000430000007380000000640164026403640464056406640768077d0174008300640802007d027d03781e74017c006a028300830144005d0e7d047c026a037c0483010100712c57007c027c016b02734e7404640983018201781c7c006a05830044005d105c027d057d067c037c0637007d03715857007c03640a6b02737c7404640b8301820164005300290c4e7a0a6d61726b6574696e67257a034c50257a0872657761726473257a057261696e257a0863686172697479257a086275796261636b257a056275726e2572010000007a194b6579206d697373696e67206f72206d697370656c6c656421e9010000007a17526174696f7320646f206e6f742073756d20746f2031212906da03736574da046c697374da046b657973da03616464725a000000da056974656d732907724d000000da0172da0173da0174da02726bda016b724e00000072490000007249000000724a0000007253000000d6000000731200000000010c0106010c0112010e01100112010c017253000000630000000000000000000000000300000043000000731a00000074006a017402640119006b06731674036402830182016400530029034e72140000007a204f6e6c79206f776e65722063616e2063616c6c2074686973206d6574686f6421290472510000007252000000723f000000725a000000724900000072490000007249000000724a0000007250000000e200000073040000000001100172500000004e291fda09696d706f72746c69627261000000da0448617368723a000000723f000000723b000000723c00000072440000007245000000724600000072470000007248000000723d000000723e000000724b000000da085f5f6578706f72747254000000da03416e797257000000da05666c6f6174725b0000007263000000726600000072680000007216000000726e00000072700000007276000000727300000072530000007250000000724900000072490000007249000000724a000000da083c6d6f64756c653e01000000734000000004010e020c0104010401040104010401040104010401040308250601121606011206060112230601120706011428060110120601100a06011007060112070e0c
 
Contract con_test_add_liq
Variable __owner__
New Value null
 
Contract con_test_add_liq
Variable __submitted__
New Value 2023,3,24,6,3,41,0
 
Contract con_test_add_liq
Variable __developer__
New Value 42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907
 
Contract currency
Variable balances
Key 42a13c664781a24ab4aca978abb685d9c07ef9ae64a2af865a043e3186a66907
New Value 3736.36939971827574208