DXgovernance / davi-monorepo

https://davi-monorepo-davi.vercel.app
8 stars 12 forks source link

Rich contracts V2 - sendsNativeTokens #299

Open rossneilson opened 1 year ago

rossneilson commented 1 year ago

User Story As a proposal builder I want to be able to input the amount of native asset to send in a transaction. AND As a rich contract curator I want to enable user inputs for native asset amounts on specific rich contract functions

We need to add a field to rich contracts schema, on the function level, a boolean which allows sendsNativeTokens.

In the UI we should then show an extra field (only if sendsNativeTokens is true) in the bottom that shows: Amount of (ETH | DAI | MATIC) to send <input in ether - not wei>

We should also have an additional value field to use in template literal