tx · 7mpDrwKB3wmVwuLkLU9urMfyKEDkSuBQovCWpCtGffvc

3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb:  -0.05000000 Waves

2020.08.19 14:10 [1139700] smart account 3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb > SELF 0.00000000 Waves

{ "type": 13, "id": "7mpDrwKB3wmVwuLkLU9urMfyKEDkSuBQovCWpCtGffvc", "fee": 5000000, "feeAssetId": null, "timestamp": 1597835484892, "version": 1, "sender": "3N1xkaQQ1yMkyL78yJ2e41DoLz3WzuU56gb", "senderPublicKey": "9xfw9zVWmncBh1JvRgpabJWLy7rYt8VSo7rFSDvGz5Lc", "proofs": [ "4XL5EUPxvdcQNTL93R5A9PGGznDPK8qPfZ1UAe5mCWMi3Hi24iZ1TA9A1Xmyunm1XYH9xFuRW7SZ5xVW9cS2sdPz" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAEAAAAAAVscEtleQIAAAALbGFzdFBheW1lbnQAAAAABWxpS2V5AgAAAApiZXN0Rm9tb2VyAAAAAAVsaEtleQIAAAAGaGVpZ2h0AAAAAANkYXkAAAAAAAAAAAIAAAACAAAAAWkBAAAAC2ZlYXJtaXNzaW5nAAAAAAQAAAAHcGF5bWVudAQAAAAHJG1hdGNoMAgFAAAAAWkAAAAHcGF5bWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQXR0YWNoZWRQYXltZW50BAAAAAFwBQAAAAckbWF0Y2gwBAAAAAckbWF0Y2gxCAUAAAABcAAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAApCeXRlVmVjdG9yBAAAAAdhc3NldElkBQAAAAckbWF0Y2gxCQAAAgAAAAECAAAAD2ZvbW8gd2F2ZXMgb25seQgFAAAAAXAAAAAGYW1vdW50CQAAAgAAAAECAAAAGHBheW1lbnQgbXVzdCBiZSBhdHRhY2hlZAQAAAALbGFzdFBheW1lbnQEAAAAByRtYXRjaDAJAAQaAAA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, "height": 1139700, "spentComplexity": 0 } View: original | compacted Prev: BDnwasaEHXRW4LwFrEmsSef1Z8VpwZzASDZkAyTAgNLN Next: 72X1hwWArs8pDhmdPoSYBnS48KqVTBbYamxTHMVpNfzN Diff:
OldNewDifferences
77
88 let lhKey = "height"
99
10-let day = 6
10+let day = 2
1111
1212 @Callable(i)
1313 func fearmissing () = {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lpKey = "lastPayment"
55
66 let liKey = "bestFomoer"
77
88 let lhKey = "height"
99
10-let day = 6
10+let day = 2
1111
1212 @Callable(i)
1313 func fearmissing () = {
1414 let payment = match i.payment {
1515 case p: AttachedPayment =>
1616 match p.assetId {
1717 case assetId: ByteVector =>
1818 throw("fomo waves only")
1919 case _ =>
2020 p.amount
2121 }
2222 case _ =>
2323 throw("payment must be attached")
2424 }
2525 let lastPayment = match getInteger(this, "lastPayment") {
2626 case p: Int =>
2727 p
2828 case _ =>
2929 0
3030 }
3131 if ((lastPayment >= payment))
3232 then throw(("min payment is " + toString(payment)))
3333 else WriteSet([DataEntry(lpKey, payment), DataEntry(liKey, i.caller.bytes), DataEntry(lhKey, height)])
3434 }
3535
3636
3737
3838 @Callable(i)
3939 func withdraw () = {
4040 let callerCorrect = (i.caller.bytes == extract(getBinary(this, liKey)))
4141 let heightCorrect = ((extract(getInteger(this, lhKey)) - height) >= day)
4242 let canWithdraw = if (heightCorrect)
4343 then callerCorrect
4444 else false
4545 if (canWithdraw)
4646 then TransferSet([ScriptTransfer(i.caller, wavesBalance(this), unit)])
4747 else throw("behold")
4848 }
4949
5050

github/deemru/w8io/026f985 
22.88 ms