tx · 2UNV9kPVMQTkRHAnvZnRG5soWB6ZRSVggYumDbEd2wR3 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.01000000 Waves 2023.03.01 15:45 [2471024] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{ "type": 13, "id": "2UNV9kPVMQTkRHAnvZnRG5soWB6ZRSVggYumDbEd2wR3", "fee": 1000000, "feeAssetId": null, "timestamp": 1677674780438, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "2BVt27nRRwx33qMFBE25d3kFiBrXTXkuox1iWiCgeSUWtPpy8TMbaxQVYAo2YqCEf1tkzdXPVGvaoQmpiNaVxsb" ], "script": "base64:BgIGCAISABIAAwAQbmV1dHJpbm9Db250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM045YmUybXdyQTUyV0pobzZEaWVzWmtrNDM1MUd2cG5XdWoADnNlY29uZENvbnRyYWN0CQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjZvUW1VYW5wNFRXdUhudjVybWE0V3ZlVnViNjNKUkZCMgALdXNkbkFzc2V0SWQBIPd26vf3g8pl224T7gI7z1gplanB0Y3yS9ps2B1igMjeAgFpARVkb3VibGVJbmRpcmVjdFN3YXBYdG4ABAVzd2FwMAkA/AcEBRBuZXV0cmlub0NvbnRyYWN0AhRzd2FwTmV1dHJpbm9Ub0Jhc2tldAUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQt1c2RuQXNzZXRJZACA4esXBQNuaWwDCQAAAgUFc3dhcDAFBXN3YXAwBAVzd2FwMQkA/AcEBQ5zZWNvbmRDb250cmFjdAIPaW5kaXJlY3RTd2FwWHRuBQNuaWwFA25pbAMJAAACBQVzd2FwMQUFc3dhcDEEBXN3YXAyCQD8BwQFEG5ldXRyaW5vQ29udHJhY3QCFHN3YXBOZXV0cmlub1RvQmFza2V0BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFC3VzZG5Bc3NldElkAIDh6xcFA25pbAMJAAACBQVzd2FwMgUFc3dhcDIFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpARdkb3VibGVJbmRpcmVjdFN3YXBXYXZlcwAEBXN3YXAwCQD8BwQFEG5ldXRyaW5vQ29udHJhY3QCE3N3YXBUb2tlblRvTmV1dHJpbm8FA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUEdW5pdACAwtcvBQNuaWwDCQAAAgUFc3dhcDAFBXN3YXAwBAVzd2FwMQkA/AcEBQ5zZWNvbmRDb250cmFjdAIRaW5kaXJlY3RTd2FwV2F2ZXMFA25pbAUDbmlsAwkAAAIFBXN3YXAxBQVzd2FwMQQFc3dhcDIJAPwHBAUQbmV1dHJpbm9Db250cmFjdAITc3dhcFRva2VuVG9OZXV0cmlubwUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQR1bml0AIDC1y8FA25pbAMJAAACBQVzd2FwMgUFc3dhcDIFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgA9bYiP", "height": 2471024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DqhZmRWZsrVAedmARY43oMuNQtGLZkLcXPQZF73Vb3sh Next: DdYJT2juVs3Jb4PNRYXSuQfz4NMkGkChEeypx5itTe7q Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | - | func | |
12 | - | let swap0 = invoke(neutrinoContract, " | |
11 | + | func doubleIndirectSwapXtn () = { | |
12 | + | let swap0 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
13 | 13 | if ((swap0 == swap0)) | |
14 | 14 | then { | |
15 | - | let swap1 = invoke(secondContract, " | |
15 | + | let swap1 = invoke(secondContract, "indirectSwapXtn", nil, nil) | |
16 | 16 | if ((swap1 == swap1)) | |
17 | 17 | then { | |
18 | - | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
18 | + | let swap2 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
19 | + | if ((swap2 == swap2)) | |
20 | + | then nil | |
21 | + | else throw("Strict value is not equal to itself.") | |
22 | + | } | |
23 | + | else throw("Strict value is not equal to itself.") | |
24 | + | } | |
25 | + | else throw("Strict value is not equal to itself.") | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | @Callable(i) | |
31 | + | func doubleIndirectSwapWaves () = { | |
32 | + | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) | |
33 | + | if ((swap0 == swap0)) | |
34 | + | then { | |
35 | + | let swap1 = invoke(secondContract, "indirectSwapWaves", nil, nil) | |
36 | + | if ((swap1 == swap1)) | |
37 | + | then { | |
38 | + | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) | |
19 | 39 | if ((swap2 == swap2)) | |
20 | 40 | then nil | |
21 | 41 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let neutrinoContract = addressFromStringValue("3N9be2mwrA52WJho6DiesZkk4351GvpnWuj") | |
5 | 5 | ||
6 | 6 | let secondContract = addressFromStringValue("3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2") | |
7 | 7 | ||
8 | 8 | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | - | func | |
12 | - | let swap0 = invoke(neutrinoContract, " | |
11 | + | func doubleIndirectSwapXtn () = { | |
12 | + | let swap0 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
13 | 13 | if ((swap0 == swap0)) | |
14 | 14 | then { | |
15 | - | let swap1 = invoke(secondContract, " | |
15 | + | let swap1 = invoke(secondContract, "indirectSwapXtn", nil, nil) | |
16 | 16 | if ((swap1 == swap1)) | |
17 | 17 | then { | |
18 | - | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
18 | + | let swap2 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)]) | |
19 | + | if ((swap2 == swap2)) | |
20 | + | then nil | |
21 | + | else throw("Strict value is not equal to itself.") | |
22 | + | } | |
23 | + | else throw("Strict value is not equal to itself.") | |
24 | + | } | |
25 | + | else throw("Strict value is not equal to itself.") | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | @Callable(i) | |
31 | + | func doubleIndirectSwapWaves () = { | |
32 | + | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) | |
33 | + | if ((swap0 == swap0)) | |
34 | + | then { | |
35 | + | let swap1 = invoke(secondContract, "indirectSwapWaves", nil, nil) | |
36 | + | if ((swap1 == swap1)) | |
37 | + | then { | |
38 | + | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) | |
19 | 39 | if ((swap2 == swap2)) | |
20 | 40 | then nil | |
21 | 41 | else throw("Strict value is not equal to itself.") | |
22 | 42 | } | |
23 | 43 | else throw("Strict value is not equal to itself.") | |
24 | 44 | } | |
25 | 45 | else throw("Strict value is not equal to itself.") | |
26 | 46 | } | |
27 | 47 | ||
28 | 48 |
github/deemru/w8io/026f985 22.00 ms ◑