Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referral system v2 #203

Closed
tjcloa opened this issue Apr 30, 2021 · 0 comments · Fixed by #233
Closed

Referral system v2 #203

tjcloa opened this issue Apr 30, 2021 · 0 comments · Fixed by #233
Assignees
Labels
enhancement New feature or request high priority

Comments

@tjcloa
Copy link
Contributor

tjcloa commented Apr 30, 2021

Pay referral fees in SOV

Initial task statement: #114
Should be implemented in a separate branch

Amendments

  1. Take v1 affilites as the basis (without additional bonuses)
  2. Change the rewards system:
    Affiliates only get reward in sov 5% of the trading fees (the trading fee amount is converted to sov and 5% accrued to affiliates to a new (to be created by Franklin) contract LockedSov:
    A mock contract can be used so far with this minimal interface:
/**
 * @notice Adds SOV to the locked balance of a user.
 * @param _userAddress The user whose locked balance has to be updated with _sovAmount.
 * @param _sovAmount The amount of SOV to be added to the locked balance.
 */
function depositSOVByAdmin(address _userAddress, uint256 _sovAmount) public {}

We already have rebates paid in sov.
For reference:

(bool success, bytes memory data) =

            _priceFeeds.staticcall(
                abi.encodeWithSelector(
                    IPriceFeeds(_priceFeeds).queryReturn.selector,
                    feeToken,
                    protocolTokenAddress, // price rewards using SOV price rather than vesting token price
                    feeAmount.mul(feeRebatePercent).div(10**20)
                )
            );

For the details on the LockedSov contract the best to ask is @powerhousefrank

@tjcloa tjcloa added the enhancement New feature or request label Apr 30, 2021
@tjcloa tjcloa added this to the Sprint 17 milestone Apr 30, 2021
@ghost ghost linked a pull request Jun 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants