WHELP-project/whelp-contracts

Factory: Add `verified`/`non-verified` state to the pool

Closed this issue · 0 comments

Join in this branch where I did the first step:
https://github.com/WHELP-project/whelp-contracts/tree/factory/permissionless-mode
This allows a non-admin to instantiate a pool.
What else neds to be modified:

  • add a state in factory's storage to save whether the given pool has been created by an admin (verified) or not (non-verified); add query to that
  • we need to modify the criteria of creating a pool. Right now there is this hardcoded deposit_sent: bool parameter
    which is hardcoded depending on the case: you could send a deposit using CW20 only. We need to require a Coin type (to configure during factory's initialization), which will be for example:
Coin {
    denom: "Coreum",
    amount: "3000",
}

which then you will have to verify as a transfer to the contract during a pool creation