Skip to content

Latest commit

 

History

History
309 lines (275 loc) · 10.3 KB

ProtocolAffiliatesInterface.md

File metadata and controls

309 lines (275 loc) · 10.3 KB

ProtocolAffiliatesInterface.sol

View Source: contracts/modules/interfaces/ProtocolAffiliatesInterface.sol

ProtocolAffiliatesInterface contract

Functions


setAffiliatesReferrer

function setAffiliatesReferrer(address user, address referrer) external nonpayable

Arguments

Name Type Description
user address
referrer address
Source Code
function setAffiliatesReferrer(address user, address referrer) external;

setUserNotFirstTradeFlag

function setUserNotFirstTradeFlag(address user_) external nonpayable

Arguments

Name Type Description
user_ address
Source Code
function setUserNotFirstTradeFlag(address user_) external;

getUserNotFirstTradeFlag

function getUserNotFirstTradeFlag(address user_) external nonpayable
returns(bool)

Arguments

Name Type Description
user_ address
Source Code
function getUserNotFirstTradeFlag(address user_) external returns (bool);

payTradingFeeToAffiliatesReferrer

function payTradingFeeToAffiliatesReferrer(address affiliate, address trader, address token, uint256 amount) external nonpayable
returns(affiliatesBonusSOVAmount uint256, affiliatesBonusTokenAmount uint256)

Arguments

Name Type Description
affiliate address
trader address
token address
amount uint256
Source Code
function payTradingFeeToAffiliatesReferrer(
        address affiliate,
        address trader,
        address token,
        uint256 amount
    ) external returns (uint256 affiliatesBonusSOVAmount, uint256 affiliatesBonusTokenAmount);

Contracts