tx · DERwapeTxHvquZK9FoRe8xm6VjEaHdGmGeUbJ2pCxH2A

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.06.18 15:48 [2628091] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "DERwapeTxHvquZK9FoRe8xm6VjEaHdGmGeUbJ2pCxH2A", "fee": 1000000, "feeAssetId": null, "timestamp": 1687092541555, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "35E7daXTXLUAAwPW4iP6qw5zEJAX1skebsbX1fae5qXweTPYpJab1acwmB8dpbw8k6CqgwihST65jaqeF97vbPcX" ], "script": "base64:BgIQCAISBAoCCAESABIECgIIAQADAWkBBmJvcnJvdwIKYXNzZXRJZFN0cgthc3NldEFtb3VudAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAIFCmFzc2V0SWRTdHIJAMwIAgULYXNzZXRBbW91bnQFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgUHYWRkcmVzcwIKX2JvcnJvd2VkXwUKYXNzZXRJZFN0cgULYXNzZXRBbW91bnQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQdkZXBvc2l0AAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGc3VwcGx5BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAwIQ9BQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIMc3VwcGx5X3dhdmVzAMCEPQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BAdhZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQDcmVzCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOM0RuVmZmblV5WnR6Mk1SYms1VTdnaU4xMTJXZW1wTU5kAgh3aXRoZHJhdwkAzAgCBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIFB2FkZHJlc3MCCl93aXRoZHJld18FCmFzc2V0SWRTdHIFC2Fzc2V0QW1vdW50BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5IOWJMw==", "height": 2628091, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Umqm7EYigmMkCVjQBapMUwNJzHbpQRPhGckcQyxzGjs Next: BaNguZ4Jry6RDgjPixTWCt7dMRzuMeraEcGQ3uoGFVPT Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func borrow (assetIdStr,assetAmount) = {
88 let address = toString(i.caller)
99 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", [assetIdStr, assetAmount], nil)
1010 if ((res == res))
1111 then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)]
1212 else throw("Strict value is not equal to itself.")
1313 }
1414
1515
1616
1717 @Callable(i)
1818 func deposit () = {
1919 let address = toString(i.caller)
2020 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
2121 if ((res == res))
2222 then [IntegerEntry((address + "supply_waves"), 1000000)]
2323 else throw("Strict value is not equal to itself.")
2424 }
2525
2626
2727
2828 @Callable(i)
2929 func withdraw (assetIdStr,assetAmount) = {
3030 let address = toString(i.caller)
3131 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil)
3232 if ((res == res))
3333 then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)]
3434 else throw("Strict value is not equal to itself.")
3535 }
3636
3737
3838 @Verifier(tx)
3939 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4040

github/deemru/w8io/169f3d6 
28.33 ms