Wykres commitów

29 Commity (fe895fcaa7cd982765ee0e3fd5bfae16708e9454)

Autor SHA1 Wiadomość Data
Neeraj Kashyap 12204c47dd A fix for the mintBatch vulnerability to bypass pool capacity 2022-11-22 08:18:36 -08:00
Neeraj Kashyap 66111c8aab Changed modifier on approveForPool and unapproveForPool
from `onlyMainAdmin` to `onlyPoolController`.
2022-07-29 05:59:06 -07:00
Neeraj Kashyap b719c9a875 Terminus Controller contract now proxies "isApprovedForPool" 2022-07-29 05:51:08 -07:00
Neeraj Kashyap a5dbb04a6e Added "unapproveForPool" on Terminus and...
made it so that Terminus Controller contract proxies `approveForPool`
and `unapproveForPool` calls through to its Terminus contract.
2022-07-29 05:49:14 -07: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
Yhtyyar Sahatov 2c09628e1a payments are now done by transferring token to controllet contract 2022-06-13 15:57:40 +03:00
Yhtyyar Sahatov 6c9949e652 payment handling on controller side 2022-06-08 16:37:35 +03:00
Yhtyyar Sahatov 8d8e70ca4e working version of terminus controller 2022-06-08 16:08:30 +03:00
Neeraj Kashyap f8df47b5ce Added fix for "safeBatchTransferFrom" issue 2022-02-01 07:28:02 -08: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 39baf061c2 Deployed Terminus diamond to Mumbai testnet 2021-12-22 12:39:34 -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