tx · 2g2PtXUs7dFVFLBA5qhqjH4XwGouqUUe9wjp6F8ftNY8

3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4:  -0.01400000 Waves

2021.04.15 09:41 [1483219] smart account 3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4 > SELF 0.00000000 Waves

{ "type": 13, "id": "2g2PtXUs7dFVFLBA5qhqjH4XwGouqUUe9wjp6F8ftNY8", "fee": 1400000, "feeAssetId": null, "timestamp": 1618468904454, "version": 2, "chainId": 84, "sender": "3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4", "senderPublicKey": "5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw", "proofs": [ "2tKejyG7fUzPTJFuKKUqtBiSL11x8KQaYSbUs3Hb9KHYDtjCR5B9uk8yuaHNuYvXvCuXk2BmCCZfoZPJxuqtfJzZ" ], "script": "base64:AAIEAAAAAAAAAAIIAgAAAAgAAAAAEWdvdmVybmFuY2VBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUcfFVgbQTJcWNlHB+frBs1+VvhcIsEzy/AAAAAA5mYXJtaW5nQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVCnPuY1cs6Yc+wrxHZMThlFbSyWhkjBpIQAAAAANb3JhY2xlQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVBfZTOgGKCvAkhITbti12MPHuaZxMGcpTwAAAAALYWRtaW5JbnZva2UBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFrZXl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GVQb29sSW50ZXJlc3QJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5nG7YKg==", "height": 1483219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H9XGJzfmTWvas99uNiLwigudhRoDvQNtHk8UWVaDwYzo Next: BNPu7r1RU7PrDwbRxGwDsikVXtCHDFgEC6qmgWimakyV Diff:
OldNewDifferences
3434 then (invoke.function == "updatePoolInterest")
3535 else false
3636 let signedByAdmin = sigVerify(tx.bodyBytes, tx.proofs[0], adminInvoke)
37- if (if (if (if (isExchangeCall)
38- then true
39- else isAirdropCall)
40- then true
41- else isUpdatePoolInterest)
42- then (size(invoke.payments) == 1)
43- else false)
44- then true
45- else if (isUpdateWeightsCall)
46- then (size(invoke.payments) == 0)
47- else false
37+ isUpdatePoolInterest
4838 case _ =>
4939 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5040 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
55
66 let farmingAddress = Address(base58'3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC')
77
88 let oracleAddress = Address(base58'3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi')
99
1010 let adminInvoke = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1111
1212 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1313
1414 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1515
1616 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1717
1818 let keyPrefixPoolName = "pool_"
1919
2020
2121 @Verifier(tx)
2222 func verify () = match tx {
2323 case invoke: InvokeScriptTransaction =>
2424 let isExchangeCall = if (isDefined(getString(oracleAddress, (keyPrefixPoolName + toString(addressFromRecipient(invoke.dApp))))))
2525 then (invoke.function == "exchange")
2626 else false
2727 let isAirdropCall = if ((invoke.dApp == governanceAddress))
2828 then (invoke.function == "airDrop")
2929 else false
3030 let isUpdateWeightsCall = if ((invoke.dApp == governanceAddress))
3131 then (invoke.function == "updateWeights")
3232 else false
3333 let isUpdatePoolInterest = if ((invoke.dApp == farmingAddress))
3434 then (invoke.function == "updatePoolInterest")
3535 else false
3636 let signedByAdmin = sigVerify(tx.bodyBytes, tx.proofs[0], adminInvoke)
37- if (if (if (if (isExchangeCall)
38- then true
39- else isAirdropCall)
40- then true
41- else isUpdatePoolInterest)
42- then (size(invoke.payments) == 1)
43- else false)
44- then true
45- else if (isUpdateWeightsCall)
46- then (size(invoke.payments) == 0)
47- else false
37+ isUpdatePoolInterest
4838 case _ =>
4939 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5040 }
5141

github/deemru/w8io/026f985 
48.87 ms