Files
Alessandro ScandoneandGitHub 5dfc34cd3c feat: feature flag syntax (#120)
* feat: feature flag syntax

* feat: change syntax

* feat: reject invalid features

* feat: add static check of unknown features

* feat: more defensive args handling

* fix: fix typo
2026-03-04 13:32:35 +00:00

15 lines
304 B
Plaintext

vars { monetary $amt = overdraft(@user:001, USD/2) }
// we have at most 1000 USD/2 to remove user:001's debt
send [USD/2 1000] (
source = @world
destination = {
// but we send at most what we need to cancel the debt
max $amt to @user:001
remaining kept
}
)