mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
* 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
15 lines
304 B
Plaintext
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
|
|
}
|
|
)
|
|
|