owner() :
Returns the address of the current owner.
Waiver of Possession() :
Leaves the contract without an owner. It is no longer possible to call `onlyOwner` functions. Can only be accessed by the current owner. NOTE: Renouncing ownership leaves the contract without an owner, removing all features available only to the owner.
Transfer ownership (address):
Transfers ownership of the contract to a new account (“newOwner”). Can only be accessed by the current owner.
poolLength() :
This function returns the length of the poolInfo array, which contains information about all pools in the contract. (automatically generated documentation)
add(uint256,uint16,bool) :
This feature adds a new pool to the contract with a specific allocation point, deposit fee and LP token. It updates the total allocation point and saves pool information. (automatically generated documentation)
set(uint256,uint256,uint16,bool):
This feature sets the allocation point and deposit fee for a pool and updates the total allocation point if necessary. Only the owner can call it. (automatically generated documentation)
getMultiplier(uint256,uint256) :
This function calculates the bonus multiplier based on the difference between two input values. It uses the SafeMath library to prevent integer underflow/overflow. (automatically generated documentation)
PendingJupiter(uint256,address) :
This function calculates the outstanding Jupiter rewards for a user in a pool by multiplying their share of the pool by their accumulated Jupiter per share. (automatically generated documentation)
massUpdatePools() :
This function updates all pools by calling the updatePool function for each pool in the poolInfo array. (automatically generated documentation)
updatePool(uint256) :
This feature updates the pool’s Jupiter reward based on the amount of LP tokens and allocated points and distributes them to developers and pool. (automatically generated documentation)
Deposit (uint256, uint256, address):
This feature allows a user to deposit LP tokens into a pool, with optional referral address and deposit fee. Rewards are calculated and transferred. (automatically generated documentation)
retract(uint256, uint256):
This feature allows a user to withdraw their LP tokens from a pool while still receiving all pending rewards and referral commissions. (automatically generated documentation)
EmergencyWithdraw(uint256) :
Allows the user to withdraw their entire LP token balance from a pool in an emergency and reset their rewards debt to 0. (automatically generated documentation)
safeJupiterTransfer(address,uint256) :
This feature securely transfers JUP tokens by checking the balance and ensuring a successful transfer. (automatically generated documentation)
setDevAddress(address) :
This function sets the developer’s address and can only be called by the current developer. (automatically generated documentation)
setFeeAddress(address) :
This function sets the billing address and can only be called from the current billing address. (automatically generated documentation)
updateEmissionRate() :
This feature updates a token’s issuance rate based on a reduction schedule, reducing the rate over time. (automatically generated documentation)
setJupiterReferral() :
This function sets the address of the Jupiter referral contract. Only the contract holder can access this function. (automatically generated documentation)
setReferralProvisionRate(uint16) :
This feature sets the referral commission rate for a smart contract and ensures it is within a valid range. (automatically generated documentation)
payReferralProvision (address, uint256) :
This feature pays a referral commission to a user’s referrer based on a set commission rate and the user’s outstanding rewards. (automatically generated documentation)
Learn Crypto Trading, Yield Farms, Income strategies and more at CrytoAnswers
https://nov.link/cryptoanswers
Comments are closed.