Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Recover Funds + Minimum Payout in Scalar Market #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Luigy-Lemon
Copy link

@Luigy-Lemon Luigy-Lemon commented Jan 2, 2022

In this PR:

  • add the functionality that makes it possible to recover ERC20 tokens sent to the contract which aren't the collateral back to the creator.

  • add ability to have a minimum payout amount for the KPI token in a scalar market. So that even if the lower bound is not met holders can still redeem a fraction of the collateral.

@Luigy-Lemon
Copy link
Author

The recoverFunds function is working as intended and has been tested on rinkeby. Only conditions for it to be functional is that the KPI has been initialized and the collateral is obviously not recoverable this way and only through the redeem() function.
https://rinkeby.etherscan.io/tx/0x9b8cb574141fddc25b6fa16661ec75edfa147022e774c09a044978aa0c1d1060 successful test

The minimum payout amount functionality has not yet been tested.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant