AxLabs / grantshares-contracts

GrantShares: Smart Contracts 🌱
Apache License 2.0
5 stars 2 forks source link

Intents length should have a max number and checked on proposal creation #37

Open gsmachado opened 1 year ago

gsmachado commented 1 year ago

I'm not sure whether this is a big problem, but maybe it would be nice to limit the amount of Intents sent within a proposal.

Does this implicitly have a limit due to the amount of items in a stack? or am I missing something here?

csmuller commented 1 year ago

There are "natural" constraints like size of the create-proposal transaction, GAS costs of that transaction (because the intents have to be stored on-chain).

But we could impose an artificial maximum number.