tx · 7Duv8oZi5FtXWHDTZtewbHnUP5y32wC9aket9td7wBUq

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.05.20 23:05 [2586746] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "7Duv8oZi5FtXWHDTZtewbHnUP5y32wC9aket9td7wBUq", "fee": 1000000, "feeAssetId": null, "timestamp": 1684613196133, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "TabUZJD5mqQJ3jmCfGSSkHfqDeifFvUyRhiZR76ucu4Zk8pDHCNTXbrPPBkpxv972moZ8f66GRNcaAHhXCWzu1b" ], "script": "base64:BgINCAISAwoBARIECgIIAQACAWkBBmJvcnJvdwELYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAkAzAgCBQthc3NldEFtb3VudAUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQR1bml0AIDC1y8FA25pbAMJAAACBQNyZXMFA3JlcwQHJG1hdGNoMAUDcmVzAwkAAQIFByRtYXRjaDACA0ludAQBcgUHJG1hdGNoMAkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFB2FkZHJlc3MCCl9ib3Jyb3dlZF8FAXIFA25pbAUBcgkAAgECF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BA9zbWFydGNvbnRyYWN0SWQJAQdBZGRyZXNzAQEaAVSR8rKcOXOcwnFyIptAQqBsHWeVhvtFQ64EB3Rva2VuSWQJAQdBZGRyZXNzAQEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAUPc21hcnRjb250cmFjdElkAgh3aXRoZHJhdwkAzAgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQFyBQNuaWwFAXIJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlUVS2c", "height": 2586746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5kBA8XNLqZirNGHhARvvDm1tCXmNHn9GwWpLvEHy9BKB Next: 7foamwJgTzGUfEDkRQ8HAvhzkPE2SYRH8P16gPurifcs Diff:
OldNewDifferences
88 let smartcontractId = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
99 let tokenId = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
1010 let address = toString(i.caller)
11- let res = invoke(smartcontractId, "borrow", [tokenId, assetAmount], [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', 1000000)])
11+ let res = invoke(smartcontractId, "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], [AttachedPayment(unit, 100000000)])
1212 if ((res == res))
1313 then match res {
1414 case r: Int =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func borrow (assetAmount) = {
88 let smartcontractId = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
99 let tokenId = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
1010 let address = toString(i.caller)
11- let res = invoke(smartcontractId, "borrow", [tokenId, assetAmount], [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', 1000000)])
11+ let res = invoke(smartcontractId, "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], [AttachedPayment(unit, 100000000)])
1212 if ((res == res))
1313 then match res {
1414 case r: Int =>
1515 $Tuple2([IntegerEntry((address + "_borrowed_"), r)], r)
1616 case _ =>
1717 throw("Incorrect invoke result")
1818 }
1919 else throw("Strict value is not equal to itself.")
2020 }
2121
2222
2323
2424 @Callable(i)
2525 func withdraw (assetIdStr,assetAmount) = {
2626 let smartcontractId = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd')
2727 let tokenId = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')
2828 let address = toString(i.caller)
2929 let res = invoke(smartcontractId, "withdraw", [addressFromStringValue(assetIdStr), assetAmount], [AttachedPayment(unit, 100000000)])
3030 if ((res == res))
3131 then match res {
3232 case r: Int =>
3333 $Tuple2([IntegerEntry(((address + "_withdrew_") + assetIdStr), r)], r)
3434 case _ =>
3535 throw("Incorrect invoke result")
3636 }
3737 else throw("Strict value is not equal to itself.")
3838 }
3939
4040
4141 @Verifier(tx)
4242 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4343

github/deemru/w8io/169f3d6 
25.81 ms