tx · DqhZmRWZsrVAedmARY43oMuNQtGLZkLcXPQZF73Vb3sh
3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.01000000 Waves
2023.03.01 15:39 [2471018] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{
"type": 13,
"id": "DqhZmRWZsrVAedmARY43oMuNQtGLZkLcXPQZF73Vb3sh",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1677674420851,
"version": 2,
"chainId": 84,
"sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37",
"senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV",
"proofs": [
"5NLNdo9mGNDCAX6rxEwY3C9Ws3DkeWJNm5yJUTA3rhHmZ7YvPtgThSADPtS8pXsim15e1iLsKBUVbdrcCQk6MEAK"
],
"script": "base64:BgIECAISAAMAEG5ldXRyaW5vQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOOWJlMm13ckE1MldKaG82RGllc1prazQzNTFHdnBuV3VqAA5zZWNvbmRDb250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM042b1FtVWFucDRUV3VIbnY1cm1hNFd2ZVZ1YjYzSlJGQjIAC3VzZG5Bc3NldElkASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gEBaQESZG91YmxlSW5kaXJlY3RTd2FwAAQFc3dhcDAJAPwHBAUQbmV1dHJpbm9Db250cmFjdAITc3dhcFRva2VuVG9OZXV0cmlubwUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQt1c2RuQXNzZXRJZACA4esXBQNuaWwDCQAAAgUFc3dhcDAFBXN3YXAwBAVzd2FwMQkA/AcEBQ5zZWNvbmRDb250cmFjdAIMaW5kaXJlY3RTd2FwBQNuaWwFA25pbAMJAAACBQVzd2FwMQUFc3dhcDEEBXN3YXAyCQD8BwQFEG5ldXRyaW5vQ29udHJhY3QCE3N3YXBUb2tlblRvTmV1dHJpbm8FA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgULdXNkbkFzc2V0SWQAgOHrFwUDbmlsAwkAAAIFBXN3YXAyBQVzd2FwMgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAKJjpns=",
"height": 2471018,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HqMnXKWKf5Wqn9d3AKNzH9hBbqT3WqRSc83ijnkiAQ2b
Next: 2UNV9kPVMQTkRHAnvZnRG5soWB6ZRSVggYumDbEd2wR3
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let secondContract = addressFromStringValue("3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2") |
---|
7 | 7 | | |
---|
| 8 | + | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' |
---|
| 9 | + | |
---|
8 | 10 | | @Callable(i) |
---|
9 | 11 | | func doubleIndirectSwap () = { |
---|
10 | | - | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) |
---|
| 12 | + | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) |
---|
11 | 13 | | if ((swap0 == swap0)) |
---|
12 | 14 | | then { |
---|
13 | 15 | | let swap1 = invoke(secondContract, "indirectSwap", nil, nil) |
---|
14 | 16 | | if ((swap1 == swap1)) |
---|
15 | | - | then nil |
---|
| 17 | + | then { |
---|
| 18 | + | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) |
---|
| 19 | + | if ((swap2 == swap2)) |
---|
| 20 | + | then nil |
---|
| 21 | + | else throw("Strict value is not equal to itself.") |
---|
| 22 | + | } |
---|
16 | 23 | | else throw("Strict value is not equal to itself.") |
---|
17 | 24 | | } |
---|
18 | 25 | | else throw("Strict value is not equal to itself.") |
---|
Full:
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 | + | let usdnAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' |
---|
| 9 | + | |
---|
8 | 10 | | @Callable(i) |
---|
9 | 11 | | func doubleIndirectSwap () = { |
---|
10 | | - | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(unit, 100000000)]) |
---|
| 12 | + | let swap0 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) |
---|
11 | 13 | | if ((swap0 == swap0)) |
---|
12 | 14 | | then { |
---|
13 | 15 | | let swap1 = invoke(secondContract, "indirectSwap", nil, nil) |
---|
14 | 16 | | if ((swap1 == swap1)) |
---|
15 | | - | then nil |
---|
| 17 | + | then { |
---|
| 18 | + | let swap2 = invoke(neutrinoContract, "swapTokenToNeutrino", nil, [AttachedPayment(usdnAssetId, 50000000)]) |
---|
| 19 | + | if ((swap2 == swap2)) |
---|
| 20 | + | then nil |
---|
| 21 | + | else throw("Strict value is not equal to itself.") |
---|
| 22 | + | } |
---|
16 | 23 | | else throw("Strict value is not equal to itself.") |
---|
17 | 24 | | } |
---|
18 | 25 | | else throw("Strict value is not equal to itself.") |
---|
19 | 26 | | } |
---|
20 | 27 | | |
---|
21 | 28 | | |
---|