tx · 9KRoWufn3XSHnSF6vN97tzW7uSZ5BRmJVFKKS47stdNH

3MrUFEcbLtSH8ifeVLdMzhTHb2MH4CuyFpF:  -0.01400000 Waves

2021.02.04 19:55 [1383699] smart account 3MrUFEcbLtSH8ifeVLdMzhTHb2MH4CuyFpF > SELF 0.00000000 Waves

{ "type": 13, "id": "9KRoWufn3XSHnSF6vN97tzW7uSZ5BRmJVFKKS47stdNH", "fee": 1400000, "feeAssetId": null, "timestamp": 1612457745000, "version": 1, "sender": "3MrUFEcbLtSH8ifeVLdMzhTHb2MH4CuyFpF", "senderPublicKey": "8qWsqumjbi9neUPymkgFE1CS8a7FGwvCbLV6rhmUU9nR", "proofs": [ "473P5Ysk82aLfJSpCN7UfeUPMHkc1ckmDAW3pycTKAob3HkwNGcBvNJUWVfBwRKdBUBAMS58pSkSy1poepsP67xR", "5Dsi3W9rRghHMCW8hNk9KarVHzv4MfeuMGTCFuRvRSjY6KKGvwUgt6YcUh5Ehbq7CJmBVzUVbJsWaYUTLadBUyTh" ], "script": "base64:BAQAAAALZGlnaWxpcmFQYXkBAAAAID0HOFHYXYpCB2C8RjDY8m3ndBlb8WihoYLw1tvHVwgrBAAAAAdnYXRld2F5AQAAACA9BzhR2F2KQgdgvEYw2PJt53QZW/FooaGC8Nbbx1cIKwQAAAAMc3BvbnNvclRva2VuAQAAACBdMQvtJ8LandQsV/WP/p1LGsITDG9E0fNlo+TMuhD4PgQAAAAMcGF5bWVudFRva2VuAQAAACDVGtVycuVAveqx7rkVfKA7PZohin1VCKHosAamGXf54gQAAAANcmVjb3ZlcnlUb2tlbgEAAAAg1RrVcnLlQL3qse65FXygOz2aIYp9VQih6LAGphl3+eIEAAAACnByb3h5V2F2ZXMBAAAABBOr2TMEAAAACXJlY292ZXJ5MQEAAAAgPQc4UdhdikIHYLxGMNjybed0GVvxaKGhgvDW28dXCCsEAAAACXJlY292ZXJ5MgEAAAAgPQc4UdhdikIHYLxGMNjybed0GVvxaKGhgvDW28dXCCsEAA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vb2ZzAAAAAAAAAAABBQAAAAtkaWdpbGlyYVBheQAAAAAAAAAAAQAAAAAAAAAAAAMJAAAAAAAAAgkAAGQAAAACBQAAAAJzMQUAAAACczIAAAAAAAAAAAIGCQAAAgAAAAECAAAAF0ludGVncml0eSBDaGVjayBGYWlsZWQhCQEAAAAIcmVjb3ZlcnkAAAAAHZWHww==", "chainId": 84, "height": 1383699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ZfDmoeWEugFiQGLwkPYnyQyrPt9b918RiMbjTvaos38 Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let digiliraPay = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
4+let gateway = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
45 let sponsorToken = base58'7GnHzTaDe3YbDiCD9rueHiSfPB7hdanPpN4Ab79fJGtD'
56 let paymentToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
6-let proxyWaves = base58'nqAJcPZzdav7orQg3U78Nno2eF4J9bmeBbU2WtPaYkv'
7+let recoveryToken = base58'FLsa9hfu1jvXC6jhDP2x6DHHQHK2qiKPtS7D74ZFNsE1'
8+let proxyWaves = base58'WAVES'
9+let recovery1 = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
10+let recovery2 = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
11+let recovery3 = base58'57EFni8M1XesEurFh3c4jnpLExP2PCPd5TRrwMjePAT4'
712 let banned = 403000
8-let KYCPending = 0
9-let nonFungibleBlock = 100
13+let digiliraPayOnly = 99
1014 let transferBlock = 100
1115 let paymentBlock = 200
12-let fundBlock = 300
13-let paymentFundBlock = 400
14-let upperBlock = 500
16+let paymentFundBlock = 300
17+let fundBlock = 400
18+func recovery () = {
19+ let s1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], recovery1))
20+ then 1
21+ else 0
22+ let s2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], recovery2))
23+ then 1
24+ else 0
25+ let s3 = if (sigVerify(tx.bodyBytes, tx.proofs[2], recovery3))
26+ then 1
27+ else 0
28+ if ((((s1 + s2) + s3) >= 2))
29+ then true
30+ else throw("Unauthorized")
31+ }
32+
33+func checkFee (w) = {
34+ let fee = w.fee
35+ let isFeePaymentToken = (w.feeAssetId == paymentToken)
36+ let isFeeSponsorToken = (w.feeAssetId == sponsorToken)
37+ let unScriptedFee = 5
38+ let scriptedFee = 9
39+ let isScripted = match assetInfo(valueOrElse(w.assetId, proxyWaves)) {
40+ case asset: Asset =>
41+ if (asset.scripted)
42+ then true
43+ else false
44+ case _ =>
45+ false
46+ }
47+ if (if (!(isFeePaymentToken))
48+ then !(isFeeSponsorToken)
49+ else false)
50+ then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
51+ else if (if (if (isScripted)
52+ then (fee == scriptedFee)
53+ else false)
54+ then true
55+ else if (!(isScripted))
56+ then (fee == unScriptedFee)
57+ else false)
58+ then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
59+ else throw((toString(fee) + " feeAmount is wrong"))
60+ }
61+
62+func getStatus (key) = valueOrElse(getInteger(addressFromPublicKey(digiliraPay), toBase58String(key)), 0)
63+
1564 match tx {
1665 case w: TransferTransaction =>
17- let myStatus = getInteger(addressFromPublicKey(digiliraPay), toBase58String(w.sender.bytes))
18- let isUser = getInteger(addressFromPublicKey(digiliraPay), toBase58String(addressFromRecipient(w.recipient).bytes))
19- let feeToken = w.feeAssetId
20- let feeAmount = w.fee
21- let asset = valueOrElse(w.assetId, proxyWaves)
22- let isAsset = getInteger(addressFromPublicKey(digiliraPay), toBase58String(asset))
23- if (isDefined(isUser))
24- then if (isDefined(feeToken))
25- then if ((feeToken == sponsorToken))
26- then if (isDefined(isAsset))
27- then if ((isAsset == banned))
28- then throw("This asset cannot be transfered.")
29- else if (if ((valueOrElse(isAsset, banned) >= transferBlock))
30- then (upperBlock >= valueOrElse(isAsset, banned))
31- else false)
32- then if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
33- then true
34- else throw("To transfer this asset user permission must be set correctly.")
35- else throw("Transfer is not available right now.")
36- else true
37- else if ((feeToken == paymentToken))
38- then if ((w.recipient == addressFromPublicKey(digiliraPay)))
39- then if ((myStatus == KYCPending))
40- then throw("KYC Pending")
41- else if ((myStatus == banned))
42- then throw("Account Banned Can't Operate")
43- else if ((feeAmount > 10))
44- then throw("Not Allowed")
45- else if ((isAsset == banned))
46- then throw("Can not transfer this asset 3")
47- else if (if (if ((valueOrElse(isAsset, banned) >= paymentBlock))
48- then (fundBlock >= valueOrElse(isAsset, banned))
49- else false)
66+ let myStatus = getStatus(w.sender.bytes)
67+ let recipientStatus = getStatus(addressFromRecipient(w.recipient).bytes)
68+ let assetStatus = getStatus(valueOrElse(w.assetId, proxyWaves))
69+ let digiliraRecipient = (recipientStatus > 0)
70+ let myStatusBanned = (myStatus == banned)
71+ let recipientStatusBanned = (recipientStatus == banned)
72+ let assetStatusBanned = (assetStatus == banned)
73+ let isFeeRecoveryToken = (w.feeAssetId == recoveryToken)
74+ let isRecipientGateway = (w.recipient == addressFromPublicKey(gateway))
75+ let isFeePaymentToken = (w.feeAssetId == paymentToken)
76+ let isFeeSponsorToken = (w.feeAssetId == sponsorToken)
77+ let isExclusiveToken = (digiliraPayOnly == valueOrElse(assetStatus, 0))
78+ let isDigiliraPayExclusive = (digiliraPayOnly > valueOrElse(assetStatus, 0))
79+ let permissionTransferToDP = if ((valueOrElse(assetStatus, banned) > valueOrElse(recipientStatus, 0)))
80+ then true
81+ else (valueOrElse(assetStatus, banned) > valueOrElse(myStatus, 0))
82+ let permissionPayment = if ((fundBlock > valueOrElse(assetStatus, 0)))
83+ then (valueOrElse(assetStatus, 0) >= paymentBlock)
84+ else false
85+ let permissionTransferNotDP = if ((transferBlock > valueOrElse(assetStatus, 0)))
86+ then true
87+ else (valueOrElse(assetStatus, 0) >= paymentFundBlock)
88+ let isRecovery = if (if (if (digiliraRecipient)
89+ then isFeeRecoveryToken
90+ else false)
91+ then isRecipientGateway
92+ else false)
93+ then myStatusBanned
94+ else false
95+ if (if (isRecovery)
96+ then recovery()
97+ else false)
98+ then true
99+ else if (digiliraRecipient)
100+ then {
101+ let prolog = "Transfer to DigiliraPay recipient: "
102+ if (myStatusBanned)
103+ then throw((prolog + "This account has been suspended."))
104+ else if (recipientStatusBanned)
105+ then throw((prolog + "Recipient's account has been suspended."))
106+ else if (assetStatusBanned)
107+ then throw((prolog + "Asset cannot be transfered."))
108+ else if (permissionTransferToDP)
109+ then throw((prolog + "Asset cannot be transfered. Recipient/Sender is not eligible."))
110+ else if (isDigiliraPayExclusive)
111+ then throw((prolog + "Non-Transferable Token."))
112+ else if (isRecipientGateway)
113+ then if (if (permissionPayment)
50114 then true
51- else if ((valueOrElse(isAsset, banned) >= paymentFundBlock))
52- then (upperBlock >= valueOrElse(isAsset, banned))
53- else false)
54- then if ((valueOrElse(myStatus, 0) >= valueOrElse(isAsset, banned)))
55- then true
56- else throw("This asset has special requirements 2")
57- else throw("Can not transfer this asset 4")
58- else throw("Unfortunately you can only use this token for payments")
59- else if (isDefined(isAsset))
60- then if ((isAsset == banned))
61- then throw("Can not transfer this asset 5")
62- else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
63- then true
64- else throw("This asset has special requirements 5")
65- else true
66- else if (isDefined(isAsset))
67- then if ((valueOrElse(isAsset, 0) == banned))
68- then throw("Can not transfer this asset")
69- else if ((valueOrElse(isUser, 0) >= valueOrElse(isAsset, banned)))
70- then true
71- else throw("This asset has special requirements 1")
72- else true
73- else if (isDefined(isAsset))
74- then if (if ((valueOrElse(isAsset, banned) >= transferBlock))
75- then (fundBlock >= valueOrElse(isAsset, banned))
76- else false)
77- then true
78- else throw("Cannot transfer this token to none DigiliraPay users.")
79- else if (isDefined(feeToken))
80- then if ((feeToken == sponsorToken))
81- then throw("Cannot use this token for none DigiliraPay users transfers.")
82- else if ((feeToken == paymentToken))
83- then throw("Unfortunately you can only use this token for payments")
84- else true
85- else true
86- case x: Order|LeaseTransaction|BurnTransaction =>
87- false
88- case t: DataTransaction|ExchangeTransaction|SetScriptTransaction =>
89- sigVerify(t.bodyBytes, t.proofs[1], digiliraPay)
90- case mtt: MassTransferTransaction =>
91- false
115+ else isExclusiveToken)
116+ then checkFee(w)
117+ else throw((prolog + "Asset cannot be used on payments."))
118+ else if (isFeePaymentToken)
119+ then throw((prolog + "Payment Token cannot be used."))
120+ else checkFee(w)
121+ }
122+ else {
123+ let prolog = "Transfer to not DigiliraPay recipient: "
124+ if (isFeePaymentToken)
125+ then throw((prolog + "Payment Token cannot be used."))
126+ else if (myStatusBanned)
127+ then throw((prolog + "This account has been suspended."))
128+ else if (permissionTransferNotDP)
129+ then throw((prolog + "This asset cannot be transfered."))
130+ else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
131+ }
132+ case t: DataTransaction|SetScriptTransaction =>
133+ let s1 = if (sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey))
134+ then 1
135+ else 0
136+ let s2 = if (sigVerify(t.bodyBytes, t.proofs[1], digiliraPay))
137+ then 1
138+ else 0
139+ if (((s1 + s2) == 2))
140+ then true
141+ else throw("Integrity Check Failed!")
92142 case _ =>
93- true
143+ recovery()
94144 }

github/deemru/w8io/026f985 
29.73 ms