Loading…
| Operator | BLS pubkey (G1) | Stake weight | In aggregate |
|---|---|---|---|
| 0xd4d8…9943 | 0x1e9d3b806d85c566467df62244f7ccc456071ce747b52d5d9ab363c186fda771295fec7cbcddaffe9616bc4b4bd4454f86708685898396986c3766b4f44cc887 | 50.0% | SIGNED |
| 0xe0c3…0c1c | 0x2e9100a36e04470471b8521fb6c0a6a3dbe66e6b40bc002779c1fc7e611ffed409eceb657a8ac4bba23ddba3c50ebec3da91db131dfc8d8171d00559835c737a | 50.0% | SIGNED |
| Slot | Policy | expireAfter |
|---|---|---|
| 0 | 0xdeff…5cb5mockerc20.allow · 0xdeffd837…5cb5 | 60sets response expiry |
# MockERC20 Token Buy Policy# --------------------------------## For more information see:## * Rego comparison to other systems: https://www.openpolicyagent.org/docs/latest/comparison-to-other-systems/# * Rego Iteration: https://www.openpolicyagent.org/docs/latest/#iteration package mockerc20 # By default, deny requests.default allow := falsenewton-cli policy-client status --registry 0x9445404e83ef6349cd11fa7645b2dcb7629a940f --client 0x61fcDDF1C8d08867ab62A12CA0c054D2e648aD37
Anyone may re-run this check, and challenge anything it disagrees with. Learn more →
# Allow admins to do anything.allow if user_is_admin # user_is_admin is true if sender is the adminuser_is_admin if { data.params.admin == input.from} # Allow the action if the user is granted permission to perform the action.allow if { base_symbol == "BTC" price > amount_out quote_symbol == "USD" token == lower(whitelist_token.address) function_name == allowed_action.function_name token == lower(allowed_action.address) allowed_action.max_limit > amount_out} function_name := input.function.nametoken := input.decoded_function_arguments[0]amount_out := to_number(input.decoded_function_arguments[1])allowed_action := data.params.allowed_actions[input.chain_id]whitelist_token := data.params.token_whitelist[input.chain_id]base_symbol := data.data.base_symbolprice := to_number(data.data.price)quote_symbol := data.data.quote_symbol