tx · 9qn8BFReWVFSvyUoraHFrUYms5G52PPDFN3v75UaVA6Q

3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk:  -0.05000000 Waves

2022.05.20 19:00 [2060214] smart account 3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk > SELF 0.00000000 Waves

{ "type": 13, "id": "9qn8BFReWVFSvyUoraHFrUYms5G52PPDFN3v75UaVA6Q", "fee": 5000000, "feeAssetId": null, "timestamp": 1653062521905, "version": 2, "chainId": 84, "sender": "3MycZLsosqanHTxLkiHqKyYYECzBjssqSmk", "senderPublicKey": "D4dyMjKAuQNHUBbJs8ygZdsYar9CmF2X3uTXtMkH5F2e", "proofs": [ "3A8YwM9wzi8ShnaxnmYXDm38cu8MZU3PHx34jn1vWAbzoK8wMwbBmQM6sMrSiEvRqCk46WmLKHDKMXnHscWCW9i3" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAABmV0VVNETgEAAAAgDYX0ECghlXnCpRueVLUITdJs62OWdYaQ++yMaV6po6gAAAAACGlzU3RvcGVkBwAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAACYW0IBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAARVU0ROCQAAAgAAAAECAAAADUludmFsaWQgdG9rZW4DBQAAAAhpc1N0b3BlZAkAAAIAAAABAgAAAA9kQXBwIGlzIHN0b3BwZWQEAAAABXRvSXNzCQAAaAAAAAIFAAAAAmFtAAAAAAAAAABkBAAAAAFyCQEAAAAHUmVpc3N1ZQAAAAMFAAAABmV0VVNETgUAAAAFdG9Jc3MGBAAAAAN0cngJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAFdG9Jc3MFAAAABmV0VVNETgkABEwAAAACBQAAAAFyCQAETAAAAAIFAAAAA3RyeAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnsoWwS", "height": 2060214, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: h5qgimWZDQRmfB6wJCxG4KtsKn8kirSXQxig2KunWS7 Next: CnwLU8AS1u2XoBdXJ7rXVSG1yg78q9UyWnzYVHPPyQm4 Diff:
OldNewDifferences
88 let isStoped = false
99
1010 @Callable(i)
11-func stake () = {
11+func deposit () = {
1212 let pmt = value(i.payments[0])
1313 let am = pmt.amount
1414 if ((pmt.assetId != USDN))
1616 else if (isStoped)
1717 then throw("dApp is stopped")
1818 else {
19- let r = Reissue(etUSDN, am, true)
20- let trx = ScriptTransfer(i.caller, am, etUSDN)
19+ let toIss = (am * 100)
20+ let r = Reissue(etUSDN, toIss, true)
21+ let trx = ScriptTransfer(i.caller, toIss, etUSDN)
2122 [r, trx]
2223 }
2324 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
66 let etUSDN = base58'unmcHvw35UTWJEFybyRgiVmGyERnzpYbX9EvGMZrcL7'
77
88 let isStoped = false
99
1010 @Callable(i)
11-func stake () = {
11+func deposit () = {
1212 let pmt = value(i.payments[0])
1313 let am = pmt.amount
1414 if ((pmt.assetId != USDN))
1515 then throw("Invalid token")
1616 else if (isStoped)
1717 then throw("dApp is stopped")
1818 else {
19- let r = Reissue(etUSDN, am, true)
20- let trx = ScriptTransfer(i.caller, am, etUSDN)
19+ let toIss = (am * 100)
20+ let r = Reissue(etUSDN, toIss, true)
21+ let trx = ScriptTransfer(i.caller, toIss, etUSDN)
2122 [r, trx]
2223 }
2324 }
2425
2526
2627 @Verifier(tx)
2728 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2829

github/deemru/w8io/169f3d6 
22.50 ms