tx · 27u99cDbUcJy2mVFzfzQ4dMUAj3ZtRXcCyEkKGhm4H1F

3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY:  -0.01400000 Waves

2019.06.27 15:45 [560552] smart account 3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY > SELF 0.00000000 Waves

{ "type": 13, "id": "27u99cDbUcJy2mVFzfzQ4dMUAj3ZtRXcCyEkKGhm4H1F", "fee": 1400000, "feeAssetId": null, "timestamp": 1561639482718, "version": 1, "sender": "3N3sVqNviLW8oXtNFids96WheCPVhVH6MxY", "senderPublicKey": "1wL7DuULCyVDWMe1JNaLWiTTEcWUinaWX8h82hgH8k2", "proofs": [ "3o4pi1TRFpHQVTpuHwbikALYNMa1eAftLFcZmD7cLu6F9VpHLqsZjkQF2gTvTLFgbh4idUYXxrQEm3ecWcTAkBkR" ], "script": "base64:AgQAAAARZW1wbG95ZWVQdWJsaWNLZXkBAAAAIOhJV7T3E/sDzyx0gkPLAHSn7un5Ex1h6AiuiE07fmJaBAAAAA5vd25lclB1YmxpY0tleQEAAAAgLs9qIqF/gFv4H5JpbGM4G2/jXU6IPL5XKgU/j2tvSm0EAAAADmNvbXBhbnlBc3NldElEAQAAACDzuvEcY7lmVpwQTbK1RUBOWABWYh6eWrhgnGMBFaaCsgQAAAAOd2l0aGRyYXdBbW91bnQAAAAAAA7msoAEAAAADm51bU9mV2l0aGRyYXdzAAAAAAAAAAAEBAAAAA1wcmVtaXVtQnVkZ2V0AAAAAAA7msoABAAAAAR0aGlzCAUAAAACdHgAAAAGc2VuZGVyBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJZnJvbU93bmVyCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2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cfg==", "chainId": 84, "height": 560552, "spentComplexity": 0 } View: original | compacted Prev: GJrMwgyTHdJ8LnCsW3LCACfG4G3mDYixFdZen5XYbKyb Next: none Diff:
OldNewDifferences
66 let withdrawAmount = 250000000
77 let numOfWithdraws = 4
88 let premiumBudget = 1000000000
9-let this = extract(tx.sender)
9+let this = tx.sender
1010 match tx {
1111 case t: TransferTransaction =>
1212 let fromOwner = sigVerify(t.bodyBytes, t.proofs[0], ownerPublicKey)
1616 let fromEmployee = sigVerify(t.bodyBytes, t.proofs[0], employeePublicKey)
1717 if (fromEmployee)
1818 then {
19- let attempt = (numOfWithdraws - (assetBalance(t.sender, companyAssetID) / withdrawAmount))
19+ let attempt = (numOfWithdraws - (assetBalance(this, companyAssetID) / withdrawAmount))
2020 let keyName = ("dates" + toString(attempt))
2121 let targetDate = if (isDefined(getInteger(this, keyName)))
2222 then extract(getInteger(this, keyName))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let employeePublicKey = base58'GdkT8KewPT7fZGtCmmPx94SqTzSpMuhnpBVdaQaq5PSR'
44 let ownerPublicKey = base58'49jCAx3nnNQ9Xj5xUXwhjy5czmt1AWLHMYf6PxxjFzip'
55 let companyAssetID = base58'HQRQNF5iq1yAvSDqTvK8JC2D3dfn8tkkWPdBmDez2Riq'
66 let withdrawAmount = 250000000
77 let numOfWithdraws = 4
88 let premiumBudget = 1000000000
9-let this = extract(tx.sender)
9+let this = tx.sender
1010 match tx {
1111 case t: TransferTransaction =>
1212 let fromOwner = sigVerify(t.bodyBytes, t.proofs[0], ownerPublicKey)
1313 if (fromOwner)
1414 then true
1515 else {
1616 let fromEmployee = sigVerify(t.bodyBytes, t.proofs[0], employeePublicKey)
1717 if (fromEmployee)
1818 then {
19- let attempt = (numOfWithdraws - (assetBalance(t.sender, companyAssetID) / withdrawAmount))
19+ let attempt = (numOfWithdraws - (assetBalance(this, companyAssetID) / withdrawAmount))
2020 let keyName = ("dates" + toString(attempt))
2121 let targetDate = if (isDefined(getInteger(this, keyName)))
2222 then extract(getInteger(this, keyName))
2323 else throw("Incorrect witdraw attempt or missing key on Smart account state")
2424 if (if ((t.timestamp >= targetDate))
2525 then (t.amount == withdrawAmount)
2626 else false)
2727 then (t.assetId == companyAssetID)
2828 else false
2929 }
3030 else false
3131 }
3232 case s: DataTransaction|SetScriptTransaction =>
3333 sigVerify(s.bodyBytes, s.proofs[0], ownerPublicKey)
3434 case _ =>
3535 false
3636 }

github/deemru/w8io/169f3d6 
58.43 ms