Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zoe] Allow users of smart contracts to make their payout rules for any subset of assays #392

Closed
katelynsills opened this issue Jan 9, 2020 · 0 comments · Fixed by #685
Assignees
Labels
Zoe package: Zoe
Milestone

Comments

@katelynsills
Copy link
Contributor

katelynsills commented Jan 9, 2020

For example, a user trying to swap moola for simoleans in autoswap would not need to mention the liquidity assay:

 const bobMoolaForSimOfferRules = harden({
      payoutRules: [
        {
          kind: 'wantAtLeast',
          units: simoleans(1),
        },
        {
          kind: 'offerAtMost',
          units: moola(3),
        },
      ],
      exitRule: {
        kind: 'onDemand',
      },
    });

Related issue: #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment