tx · Cr7yLzm3tEzAx4caFBJx55hwYrjVitkWKY8rq99sYrZJ

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.05.31 00:03 [2601227] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "Cr7yLzm3tEzAx4caFBJx55hwYrjVitkWKY8rq99sYrZJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1685480656321, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "yFLPUcMEKPDww1Q16Jdr2zog2YwmmppoSHKRqVgr3A4AXD2MgHKLbDYkCTfSkdAyFapUJskvbeHkdAJvLheWt6U" ], "script": "base64:BgIOCAISBAoCCAESBAoCCAEAAgFpAQZib3Jyb3cCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCBmJvcnJvdwkAzAgCBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAgpfYm9ycm93ZWRfBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BA9zbWFydGNvbnRyYWN0SWQJAQdBZGRyZXNzAQEaAVSR8rKcOXOcwnFyIptAQqBsHWeVhvtFQ64EB3Rva2VuSWQJAQdBZGRyZXNzAQEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAUPc21hcnRjb250cmFjdElkAgh3aXRoZHJhdwkAzAgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQFyBQNuaWwFAXIJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmXIUsY", "height": 2601227, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 35rQT4j96b6vC7YJ71G2oE1pHSMyR3ZejXir84hjMwZx Next: 82P5iugjLpnuTam35HqPPU5YudvLgc129SMN66fgeHYB Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func borrow (b) = {
8- let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
9- let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
10- let e = toString(a.caller)
11- let f = invoke(c, "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", b], nil)
12- if ((f == f))
13- then [IntegerEntry((e + "_borrowed_"), b)]
7+func borrow (b,c) = {
8+ let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
9+ let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
10+ let f = toString(a.caller)
11+ let g = invoke(d, "borrow", [b, c], nil)
12+ if ((g == g))
13+ then [IntegerEntry((f + "_borrowed_"), c)]
1414 else throw("Strict value is not equal to itself.")
1515 }
1616
1717
1818
1919 @Callable(a)
20-func withdraw (g,b) = {
21- let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
22- let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
23- let e = toString(a.caller)
24- let f = invoke(c, "withdraw", [addressFromStringValue(g), b], [AttachedPayment(unit, 100000000)])
25- if ((f == f))
20+func withdraw (b,c) = {
21+ let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
22+ let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
23+ let f = toString(a.caller)
24+ let g = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)])
25+ if ((g == g))
2626 then {
27- let h = f
27+ let h = g
2828 if ($isInstanceOf(h, "Int"))
2929 then {
3030 let i = h
31- $Tuple2([IntegerEntry(((e + "_withdrew_") + g), i)], i)
31+ $Tuple2([IntegerEntry(((f + "_withdrew_") + b), i)], i)
3232 }
3333 else throw("Incorrect invoke result")
3434 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func borrow (b) = {
8- let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
9- let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
10- let e = toString(a.caller)
11- let f = invoke(c, "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", b], nil)
12- if ((f == f))
13- then [IntegerEntry((e + "_borrowed_"), b)]
7+func borrow (b,c) = {
8+ let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
9+ let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
10+ let f = toString(a.caller)
11+ let g = invoke(d, "borrow", [b, c], nil)
12+ if ((g == g))
13+ then [IntegerEntry((f + "_borrowed_"), c)]
1414 else throw("Strict value is not equal to itself.")
1515 }
1616
1717
1818
1919 @Callable(a)
20-func withdraw (g,b) = {
21- let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
22- let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
23- let e = toString(a.caller)
24- let f = invoke(c, "withdraw", [addressFromStringValue(g), b], [AttachedPayment(unit, 100000000)])
25- if ((f == f))
20+func withdraw (b,c) = {
21+ let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
22+ let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
23+ let f = toString(a.caller)
24+ let g = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)])
25+ if ((g == g))
2626 then {
27- let h = f
27+ let h = g
2828 if ($isInstanceOf(h, "Int"))
2929 then {
3030 let i = h
31- $Tuple2([IntegerEntry(((e + "_withdrew_") + g), i)], i)
31+ $Tuple2([IntegerEntry(((f + "_withdrew_") + b), i)], i)
3232 }
3333 else throw("Incorrect invoke result")
3434 }
3535 else throw("Strict value is not equal to itself.")
3636 }
3737
3838
3939 @Verifier(j)
4040 func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
4141

github/deemru/w8io/026f985 
134.59 ms