tx · 4uvQH8fec5fLYag8LCs2YCeb34b6giiKj2BLg7bBv6R5

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.02.17 13:38 [2453503] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "4uvQH8fec5fLYag8LCs2YCeb34b6giiKj2BLg7bBv6R5", "fee": 1000000, "feeAssetId": null, "timestamp": 1676630436063, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "5R1Gfk6i7uhDuCcF8WxGsDoMjP7cUttU3WdeWXYDXwc7AjSpAzeasAFGGkUz61NBGGoyY7Qi696YNNLgpbazZUVu" ], "script": "base64:BgIKCAISBgoECAgCAgMABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgADdXNkASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAFV0FWRVMBAAEBaQENdHJhbnNmZXJUb2tlbgQNcmVjZXBpZW50QWRkcgdtZXNzYWdlCGN1cnJlbmN5CWN1cnJlbmN5MgQGY2FsbGVyCAgFAWkGY2FsbGVyBWJ5dGVzBAdyZWNpdmVyCQDZBAEFDXJlY2VwaWVudEFkZHIEBmFtb3VudAgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEB2Ftb3VudDIICQCRAwIIBQFpCHBheW1lbnRzAAEGYW1vdW50CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAglfdHJhbnNmZXIFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAgxfdHJhbnNmZXJfdG8FDXJlY2VwaWVudEFkZHIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQdyZWNpdmVyBQZhbW91bnQFCGN1cnJlbmN5CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUHYW1vdW50MgUJY3VycmVuY3kyBQNuaWwAJsyiAw==", "height": 2453503, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4fVtfzCG1T49yg3vFyoDkjkGqbotu2GGw84vbT8nGmo7 Next: GXDWSomhmW1ghzMLXYciuMbHsrF1U6od3tuyeh4o555K Diff:
OldNewDifferences
88 let WAVES = base58''
99
1010 @Callable(i)
11-func transferToken (recepientAddr,message) = {
11+func transferToken (recepientAddr,message,currency,currency2) = {
1212 let caller = i.caller.bytes
1313 let reciver = fromBase58String(recepientAddr)
1414 let amount = i.payments[0].amount
15- if ((i.payments[0].assetId == teams))
16- then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)]
17- else if ((i.payments[1].assetId == usd))
18- then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, usd)]
19- else throw("soryy")
15+ let amount2 = i.payments[1].amount
16+[IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, currency), ScriptTransfer(Address(reciver), amount2, currency2)]
2017 }
2118
2219
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
55
66 let usd = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
77
88 let WAVES = base58''
99
1010 @Callable(i)
11-func transferToken (recepientAddr,message) = {
11+func transferToken (recepientAddr,message,currency,currency2) = {
1212 let caller = i.caller.bytes
1313 let reciver = fromBase58String(recepientAddr)
1414 let amount = i.payments[0].amount
15- if ((i.payments[0].assetId == teams))
16- then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, teams)]
17- else if ((i.payments[1].assetId == usd))
18- then [IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, usd)]
19- else throw("soryy")
15+ let amount2 = i.payments[1].amount
16+[IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr), ScriptTransfer(Address(reciver), amount, currency), ScriptTransfer(Address(reciver), amount2, currency2)]
2017 }
2118
2219

github/deemru/w8io/026f985 
39.13 ms