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:
OldNewDifferences
88 let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
99
1010 @Callable(i)
11-func doubleIndirectSwap () = {
12- let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)])
11+func doubleIndirectSwapXtn () = {
12+ let swap0 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)])
1313 if ((swap0 == swap0))
1414 then {
15- let swap1 = invoke(secondContract, "indirectSwap", nil, nil)
15+ let swap1 = invoke(secondContract, "indirectSwapXtn", nil, nil)
1616 if ((swap1 == swap1))
1717 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)])
1939 if ((swap2 == swap2))
2040 then nil
2141 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let neutrinoContract = addressFromStringValue("3N9be2mwrA52WJho6DiesZkk4351GvpnWuj")
55
66 let secondContract = addressFromStringValue("3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2")
77
88 let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
99
1010 @Callable(i)
11-func doubleIndirectSwap () = {
12- let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)])
11+func doubleIndirectSwapXtn () = {
12+ let swap0 = invoke(neutrinoContract, "swapNeutrinoToBasket", nil, [AttachedPayment(usdnAssetId, 50000000)])
1313 if ((swap0 == swap0))
1414 then {
15- let swap1 = invoke(secondContract, "indirectSwap", nil, nil)
15+ let swap1 = invoke(secondContract, "indirectSwapXtn", nil, nil)
1616 if ((swap1 == swap1))
1717 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)])
1939 if ((swap2 == swap2))
2040 then nil
2141 else throw("Strict value is not equal to itself.")
2242 }
2343 else throw("Strict value is not equal to itself.")
2444 }
2545 else throw("Strict value is not equal to itself.")
2646 }
2747
2848

github/deemru/w8io/026f985 
22.00 ms