# Shielded Kudos Pt. 4: DL examples

**URL:** <https://forum.anoma.net/t/shielded-kudos-pt-4-dl-examples/1416>\
**Category:** Applications\
**Created:** [April 9, 2025, 1:09pm UTC](https://forum.anoma.net/t/shielded-kudos-pt-4-dl-examples/1416 "2025-04-09T13:09:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![vveiln](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.anoma.net/vveiln/32/60_2.png) [@vveiln](https://forum.anoma.net/u/vveiln)\
**Post date:** [April 29, 2025, 1:06pm UTC](https://forum.anoma.net/t/shielded-kudos-pt-4-dl-examples/1416/12 "2025-04-29T13:06:33Z")

</div>

## Simple non-trivial receive logic example

Only allow receiving tokens of non-zero quantity of the listed assets.

Constraints:

There is a created kudo ‘r’ in the same action s.t.:

- `r.owner = self.label.owner` (checking that the kudo is created for the person whose receive logic is currently being checked)
- `r.kind() is in allowedKinds`. List of allowed kinds is hardcoded in the logic in this example. We can imagine that it is something like this: `allowedKinds = [apple, orange, banana]` (the list contains specific kinds instead of letters)
- `r.quantity > 0`

The constraint is triggered for all receive logic resources (we only create ephemeral ones to trigger the logic by design, but we can just not check it since it doesn’t seem to allow any invalid behaviour)

---

_[View the full topic](https://forum.anoma.net/t/shielded-kudos-pt-4-dl-examples/1416)._
