Files
2024-07-16 02:44:11 +10:00

24 lines
653 B
JavaScript

const rules = [
{
id: "1089",
enable: true,
valueDescription: "Does the signature belong to the website that initiated it",
valueDefine: {
type: "boolean",
},
defaultThreshold: {
danger: false,
},
customThreshold: {},
requires: ["createKey"],
async getValue(ctx) {
const { allowOrigins, origin } = ctx.createKey;
return allowOrigins.includes(origin);
},
descriptions: {
danger: `The transaction is not associated with the website that initiated it`,
},
},
];
export default rules;