Neeraj Kashyap
4b198dd3b4
Added "createSimplePoolV2" on TerminusFacet
...
Also made it so that if `requiredPayment` is set to 0 on a Terminus
contract, we will not even initiate the ERC20 `transferFrom`. This makes
it so that a Terminus contract in which the controller does not have to
pay to create a pool does not require setting a payment token.
Bumped dao version to `0.0.8`.
Added tests for `createSimplePoolV2` functionality.
2023-02-17 10:58:31 -08:00
Yhtyyar Sahatov
c374c2df6a
fixed mint_batch
2022-07-06 17:54:10 +03:00
Yhtyyar Sahatov
8721eb8bc6
`isApprovedForPool(poolId)` can mint tokens in that pool
2022-07-06 16:41:29 +03:00
Neeraj Kashyap
a37ec24699
Added check for pool controllership on pool parameter setters
...
Transferability and burnability of a pool can only be changed by pool
controller.
2022-07-04 12:03:48 -07:00
Neeraj Kashyap
afa3d3f772
Added methods to view and change pool transferability/burnability
2022-07-04 11:54:53 -07:00
Neeraj Kashyap
dce2f2e118
added setController ot TerminusFacet
2022-02-01 06:35:41 -08:00
Neeraj Kashyap
e1a1828e6b
Pool creation can only be done by controller now.
...
Fixes a vulnerability related to Open Sea.
2022-02-01 06:17:07 -08:00
Neeraj Kashyap
98bd1c7248
Added contract metadata functionality to "TerminusFacet"
...
To better integrate with platforms like Open Sea.
2022-01-24 22:32:09 -08:00
Neeraj Kashyap
b3addbb99f
Added "setPoolController" external method to "TerminusFacet"
2021-12-24 07:37:37 -08:00
Neeraj Kashyap
016f114fa3
Made "TerminusFacet" usable as a self-contained smart contract
2021-12-24 06:22:09 -08:00
Neeraj Kashyap
6ec5715996
Added pool authorizations for separate addresses
2021-12-22 12:10:32 -08:00
Neeraj Kashyap
973e49526d
Added Terminus pool features
...
0. Capacity
1. Transferable
2. Burnable
2021-12-21 13:05:40 -08:00
Neeraj Kashyap
aed0d9584c
Added poolCapacity to Terminus
...
Removed `poolActive`
2021-12-21 11:48:02 -08:00
Neeraj Kashyap
6ad179f452
Added payment functionality to Terminus
2021-12-19 05:07:21 -08:00
Neeraj Kashyap
96829f26bd
Added payment token functionality to TerminusFacet
2021-12-19 04:47:24 -08:00
Neeraj Kashyap
aeb80d7857
Moonstream token is platform token, not governance token.
...
Governance will be handled by Terminus pool!
2021-12-19 04:11:18 -08:00
Neeraj Kashyap
2747d63067
Test for pool creation
...
Also added the `terminusPoolController` view method on the
TerminusFacet.
2021-12-18 12:42:21 -08:00
Neeraj Kashyap
aa18d54c6d
Deployment test for terminus
...
ERC20Facet.controller -> ERC20Facet.moonstreamController
TerminusFacet.controller -> TerminusFacet.terminusController
When both facets had view methods of the same name, `dao.core.facet_cut`
was not mounting the `TerminusFacet.controller` method to the diamond
because of its precedence rules.
2021-12-18 12:30:09 -08:00
Neeraj Kashyap
cad68dcfa8
Added controller view methods on ERC20Facet and TerminusFacet
2021-12-18 12:25:54 -08:00
Neeraj Kashyap
7b3bd5d255
Added external "totalPools" and "createPool" on TerminusFacet
2021-12-18 12:20:55 -08:00
Neeraj Kashyap
87faf3db00
Terminus smart contracts
...
This represents the very first draft of Terminus.
2021-12-18 12:10:53 -08:00