tx · 2b1ZHdD2TBZf7TxwqdhHkT3HWBM8aVhts8Tvxu3j32TW

3N3b5wban4PEUuND6PxSbTvoekc66fss78g:  -0.14000000 Waves

2021.10.26 16:04 [1763294] smart account 3N3b5wban4PEUuND6PxSbTvoekc66fss78g > SELF 0.00000000 Waves

{ "type": 13, "id": "2b1ZHdD2TBZf7TxwqdhHkT3HWBM8aVhts8Tvxu3j32TW", "fee": 14000000, "feeAssetId": null, "timestamp": 1635253461856, "version": 2, "chainId": 84, "sender": "3N3b5wban4PEUuND6PxSbTvoekc66fss78g", "senderPublicKey": "DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq", "proofs": [ "3FZwcnuVDou9pouGfUw7JDTVGsLGgDfxKxmAeWZ9kKE4P6ZpuRArp8MZyx29Dwui4T48FU4fXZR716iCR2yHWi35", "2gK93ocX7rbqYA4tYMRQ8YW4tnktvGvtYMkEg1F18VYgn587urJxqc2eYybTqufE3xRtZazovZgbmf61fVCfDmtq", "2Mfs7EZHw9PuHadPEk4Wemeu7rC26ShkmCsWEco2oXZiDmsFiKbgfKwszNKW3LZBgprLBWpfe3Ax4cXGit8WaNa3" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAADQAAAAARa2V5QWN0aXZhdGVIZWlnaHQCAAAAD2FjdGl2YXRlX2hlaWdodAAAAAAPa2V5RmluaXNoSGVpZ2h0AgAAAA1maW5pc2hfaGVpZ2h0AAAAAA5hY3RpdmF0ZUhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAARa2V5QWN0aXZhdGVIZWlnaHQAAAAADGZpbmlzaEhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAAPa2V5RmluaXNoSGVpZ2h0AAAAAA50b3RhbFNoYXJlRU5OTwAAAFrzEHpAAAAAAAAERU5OTwEAAAAgFbvcV9OA6rL+53m/DeV6nxGYIu+IXr9brrnP32tI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25lZAAAAAAAAAAAAlZCggk=", "height": 1763294, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FC9dNG7Nm81unoR4kCupbTjBpeNakQ6hfnJyTQQmCEUA Next: GHw9NzBucj7vPzew668MM4JVno4rwAKS9S1jd8g5hTXV Diff:
OldNewDifferences
7070 then height
7171 else d
7272 let x = l(u.caller)
73- let y = r(u.caller)
74- let z = (fraction((w - c), x, v) - y)
75- let A = (y + z)
73+ if ((c > height))
74+ then throw("Early Bird period has not been started yet.")
75+ else {
76+ let y = r(u.caller)
77+ let z = (fraction((w - c), x, v) - y)
78+ let A = (y + z)
7679 [ScriptTransfer(u.caller, z, f), IntegerEntry((toString(u.caller) + g), A), IntegerEntry((toString(u.caller) + h), z)]
80+ }
7781 }
7882
7983
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "activate_height"
55
66 let b = "finish_height"
77
88 let c = getIntegerValue(this, a)
99
1010 let d = getIntegerValue(this, b)
1111
1212 let e = 100000000000000
1313
1414 let f = base58'2Tqhz5PWbkijnzYpdLxLDFfVDw5ALQWm2rmxQ79ooMRZ'
1515
1616 let g = "_ENNO_claimed_amount"
1717
1818 let h = "_ENNO_last_claimed_amount"
1919
2020 let i = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq'
2121
2222 let j = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq'
2323
2424 let k = base58'DkMBTSHqT9hKVK1joeyL9DWKdzMAiCYZtYVkMPUx4Zwq'
2525
2626 func l (m) = {
2727 let n = getInteger(this, ("share_" + toString(m)))
2828 let o = {
2929 let p = n
3030 if ($isInstanceOf(p, "Int"))
3131 then {
3232 let q = p
3333 q
3434 }
3535 else if ($isInstanceOf(p, "Unit"))
3636 then {
3737 let q = p
3838 throw("Only early liquidity providers can call this function")
3939 }
4040 else throw("Match error")
4141 }
4242 o
4343 }
4444
4545
4646 func r (m) = {
4747 let s = getInteger(this, (toString(m) + g))
4848 let t = {
4949 let p = s
5050 if ($isInstanceOf(p, "Int"))
5151 then {
5252 let q = p
5353 q
5454 }
5555 else if ($isInstanceOf(p, "Unit"))
5656 then {
5757 let q = p
5858 0
5959 }
6060 else throw("Match error")
6161 }
6262 t
6363 }
6464
6565
6666 @Callable(u)
6767 func claimENNO () = {
6868 let v = (d - c)
6969 let w = if ((d > height))
7070 then height
7171 else d
7272 let x = l(u.caller)
73- let y = r(u.caller)
74- let z = (fraction((w - c), x, v) - y)
75- let A = (y + z)
73+ if ((c > height))
74+ then throw("Early Bird period has not been started yet.")
75+ else {
76+ let y = r(u.caller)
77+ let z = (fraction((w - c), x, v) - y)
78+ let A = (y + z)
7679 [ScriptTransfer(u.caller, z, f), IntegerEntry((toString(u.caller) + g), A), IntegerEntry((toString(u.caller) + h), z)]
80+ }
7781 }
7882
7983
8084 @Verifier(B)
8185 func C () = {
8286 let p = B
8387 let D = if (sigVerify(B.bodyBytes, B.proofs[0], i))
8488 then 1
8589 else 0
8690 let E = if (sigVerify(B.bodyBytes, B.proofs[1], j))
8791 then 1
8892 else 0
8993 let F = if (sigVerify(B.bodyBytes, B.proofs[2], k))
9094 then 1
9195 else 0
9296 (((D + E) + F) >= 2)
9397 }
9498

github/deemru/w8io/169f3d6 
44.82 ms