trizin and ChaituVR [ocean-dao-brightid] Add Math.sqrt to ocean-dao-brightid strategy (#…
dfb2407 Feb 17, 2022
[ocean-dao-brightid] Add `Math.sqrt` to ocean-dao-brightid strategy (#…
…400)

* Add ocean-marketplace-brightid strategy

* Remove square root

* Add `brightIdNetwork` param

* Rename strategy to `ocean-dao-brightid`

* Add `README.md`

* Rename folder

* Update registry address & add new param

* Use `notVerifiedMultiplier` param

* Set allowed strategies and limit the number

* Update comments

* Remove `brightIdNetwork` param

* Set the `blockTag` to `snapshot`

* Update src/strategies/ocean-dao-brightid/index.ts

* Update block number

* Add support for 'brightIdNetwork' parameter

* Add support for custom network id & block

* Revert "Add support for custom network id & block"

This reverts commit 5c12adc.

* Add multichain support

* Remove `ALLOWED_STRATEGIES`

* Add `getChainBlocksFromApi`

* Update example

* Use blockfinder && add delegations

* Add square root to calculation

* Check if NaN & remove console.debug

Co-authored-by: Chaitanya <yourchaitu@gmail.com>
dfb2407