mirror of
https://github.com/luxfi/lux-security-engine.git
synced 2026-10-30 16:20:37 +00:00
24 lines
599 B
JavaScript
24 lines
599 B
JavaScript
const rules = [
|
|
{
|
|
id: "1144",
|
|
enable: true,
|
|
valueDescription: "You won't receive any assets from this order",
|
|
valueDefine: {
|
|
type: "boolean",
|
|
},
|
|
defaultThreshold: {
|
|
danger: false,
|
|
},
|
|
customThreshold: {},
|
|
requires: ["assetOrder"],
|
|
async getValue(ctx) {
|
|
const { hasReceiveAssets } = ctx.assetOrder;
|
|
return hasReceiveAssets;
|
|
},
|
|
descriptions: {
|
|
danger: `You won't receive any assets from this order`,
|
|
},
|
|
}
|
|
];
|
|
export default rules;
|