0 txs
0 calls
constructor
constructor(address reward, address meToken, (uint256 rOptimal, uint256 maximumRLimit, uint256 minimumRewardAmountForConversation, uint256 minimumMeAmountForConversation, uint256 notifyRewardAmount, uint256 notifyMeAmount, uint256 defaultSlippageInPrecision, bool allowSwaps) config)
functions
balanceOf
viewfunction balanceOf(address owner) view returns (uint256)
ensureRequestorIsPositionOwner
viewfunction ensureRequestorIsPositionOwner(uint256 position, address requestor) view returns (uint256)
getAllLiquidityPositionForAccount
viewfunction getAllLiquidityPositionForAccount(address account) view returns (uint256[] positions)
getApproved
viewfunction getApproved(uint256 tokenId) view returns (address)
getIncomingConversationInsight
viewfunction getIncomingConversationInsight(uint256 rewardAmount) view returns (uint256 optimalMeAmount, uint256 lastRewardAmount)
getLiquidityIds
viewfunction getLiquidityIds() view returns (address initiator, address reward, address meToken)
getLiquidityPositionByIndex
viewfunction getLiquidityPositionByIndex(uint256 index, address account) view returns (uint256 position)
getLiquidityRatios
viewfunction getLiquidityRatios() view returns (uint256 rOptimalInPrecision, uint256 rlastInPrecision)
getOpenRewardsConfigurations
purefunction getOpenRewardsConfigurations() pure returns (tuple config)
getOpenRewardsState
purefunction getOpenRewardsState() pure returns (tuple state)
getOptimalRatio
viewfunction getOptimalRatio() view returns (uint256 r)
getOutgoingConversationInsight
viewfunction getOutgoingConversationInsight(uint256 meAmount, uint256 slippageInPrecision) view returns (uint256 rewardAmount, uint256 lastRewardAmount)
getPositionData
viewfunction getPositionData(uint256 _positionId) view returns (tuple data)
isApprovedForAll
viewfunction isApprovedForAll(address owner, address operator) view returns (bool)
leverageIncomingConversationInsight
viewfunction leverageIncomingConversationInsight(uint256 rewardAmount) view returns (uint256, uint256)
leverageOutgoingConversationInsight
viewfunction leverageOutgoingConversationInsight(uint256 meAmount, uint256 slippageInPrecision) view returns (uint256 rewardAmount)
name
viewfunction name() view returns (string)
ownerOf
viewfunction ownerOf(uint256 tokenId) view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
symbol
viewfunction symbol() view returns (string)
tokenByIndex
viewfunction tokenByIndex(uint256 index) view returns (uint256)
tokenOfOwnerByIndex
viewfunction tokenOfOwnerByIndex(address owner, uint256 index) view returns (uint256)
tokenURI
viewfunction tokenURI(uint256 tokenId) view returns (string)
totalSupply
viewfunction totalSupply() view returns (uint256)
addLiquidityManager
nonpayablefunction addLiquidityManager(address account) returns (bool)
addOpenRewardsManager
nonpayablefunction addOpenRewardsManager(address account) returns (bool)
approve
nonpayablefunction approve(address to, uint256 tokenId)
changeConfigExceptOptimalRatio
nonpayablefunction changeConfigExceptOptimalRatio(tuple editableConfig, bool ignoreDefault) returns (bool)
changeOptimalRatio
nonpayablefunction changeOptimalRatio(uint256 newOptimalRatio) returns (bool)
engageIncomingConversation
nonpayablefunction engageIncomingConversation(uint256 _outputRewardAmount, address to) returns (uint256 outputRewardAmount)
initialize
nonpayablefunction initialize(address reward, address meToken, tuple config) returns (bool)
initiateOutgoingConversation
nonpayablefunction initiateOutgoingConversation(tuple info) returns (tuple conversionDigest)
pauseOpenRewards
nonpayablefunction pauseOpenRewards() returns (bool)
recordLiquidityProvided
nonpayablefunction recordLiquidityProvided(tuple info) returns (uint256 position)
recordMeTokensProvidedByProtocolTeam
nonpayablefunction recordMeTokensProvidedByProtocolTeam(uint256 amount) returns (uint256 recordedAmount)
releaseMeTokensProvidedByProtocolTeam
nonpayablefunction releaseMeTokensProvidedByProtocolTeam(uint256 amount, address to, bytes32 releaseType) returns (uint256 rewardAmount, uint256 meAmount)
removeLiquidityManager
nonpayablefunction removeLiquidityManager(address account) returns (bool)
removeOpenRewardsManager
nonpayablefunction removeOpenRewardsManager(address account) returns (bool)
resumeOpenRewards
nonpayablefunction resumeOpenRewards() returns (bool)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId, bytes data)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId)
setApprovalForAll
nonpayablefunction setApprovalForAll(address operator, bool approved)
setBusy
nonpayablefunction setBusy() returns (bool)
setUpConfig
nonpayablefunction setUpConfig(tuple _config) returns (bool)
startOpenRewards
nonpayablefunction startOpenRewards() returns (uint256 optimalRatioInPrecision)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 tokenId)
withdrawLiquidity
nonpayablefunction withdrawLiquidity(tuple info) returns (uint256 rewardAmount, uint256 meAmount)
events
Approval
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll
event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
conversationMade
event conversationMade(uint256 inputReward, uint256 outputReward, address outputOpenRewardsId, address requestor)
liqudityManagerAdded
event liqudityManagerAdded(address account, address requestor)
liqudityWithdrawn
event liqudityWithdrawn(uint256 rewardAmount, uint256 meAmount, address requestor, address to)
liquidityManagerRemoved
event liquidityManagerRemoved(address liqudityManager, address requestor)
liquidityProvided
event liquidityProvided(uint256 rewardAmount, uint256 meAmount, address requestor, address to)
liquidityUpdated
event liquidityUpdated(uint256 rewardAmount, uint256 meAmount, uint40 timestamp)
meTokensProvidedByProtocolTeam
event meTokensProvidedByProtocolTeam(uint256 amount)
meTokensRemovedByProtocolTeam
event meTokensRemovedByProtocolTeam(uint256 amount)
openRewardsConfigChanged
event openRewardsConfigChanged((uint256 maximumRLimit, uint256 minimumRewardAmountForConversation, uint256 minimumMeAmountForConversation, uint256 notifyRewardAmount, uint256 notifyMeAmount, uint256 defaultSlippageInPrecision, bool allowSwaps) editableConfig, bool ignoreDefault)
openRewardsManagerAdded
event openRewardsManagerAdded(address newOpenRewardsManager, address requestor)
openRewardsManagerRemoved
event openRewardsManagerRemoved(address openRewardsManager, address requestor)
openRewardsPaused
event openRewardsPaused(address requestor)
openRewardsResumed
event openRewardsResumed(address requestor)
openRewardsStarted
event openRewardsStarted(address requestor, uint256 optimalRatioInPrecision)
optimalRatioChanged
event optimalRatioChanged(uint256 oldRatio, uint256 newRatio)
Transfer
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
errors
ACCESS_KEY_ALREADY_EXISTS_PLEASE_CHANGE_INSTEAD
error ACCESS_KEY_ALREADY_EXISTS_PLEASE_CHANGE_INSTEAD()
ACCOUNT_ALREADY_HAS_ACCESS
error ACCOUNT_ALREADY_HAS_ACCESS()
ACCOUNT_DOES_NOT_HAVE_ACCESS
error ACCOUNT_DOES_NOT_HAVE_ACCESS()
ACCOUNT_IS_NOT_AUTHORIZED_TO_MAKE_THIS_REQUEST
error ACCOUNT_IS_NOT_AUTHORIZED_TO_MAKE_THIS_REQUEST()
ACTION_WILL_TAKE_POOL_ME_TOKENS_BELOW_CONVERSATION_LIMIT
error ACTION_WILL_TAKE_POOL_ME_TOKENS_BELOW_CONVERSATION_LIMIT()
ACTION_WOULD_TAKE_POOL_REWARDS_BELOW_CONVERSATION_LIMIT
error ACTION_WOULD_TAKE_POOL_REWARDS_BELOW_CONVERSATION_LIMIT()
ADDRESS_ZERO_NOT_ALLOWED
error ADDRESS_ZERO_NOT_ALLOWED()
BOTH_WITHDRAWALS_CANNOT_BE_ZERO
error BOTH_WITHDRAWALS_CANNOT_BE_ZERO()
CONVERSATION_FAILED
error CONVERSATION_FAILED()
CONVERSATION_WILL_CAUSE_OPEN_REWARDS_TO_GO_OUT_OF_RANGE
error CONVERSATION_WILL_CAUSE_OPEN_REWARDS_TO_GO_OUT_OF_RANGE()
CONVERSATION_WILL_CAUSE_POOL_TO_GO_OUT_OF_RANGE
error CONVERSATION_WILL_CAUSE_POOL_TO_GO_OUT_OF_RANGE()
EXPECTED_PROTOCOL_ME_OFFSET_EXCEEDS_ACTUAL_ME_OFFSET
error EXPECTED_PROTOCOL_ME_OFFSET_EXCEEDS_ACTUAL_ME_OFFSET()
INSUFFICENT_REWARD_AMOUNT_DEPOSITED_FOR_CONVERSATION
error INSUFFICENT_REWARD_AMOUNT_DEPOSITED_FOR_CONVERSATION()
INSUFFICIENT_ME_POSITION
error INSUFFICIENT_ME_POSITION()
INSUFFICIENT_REWARD_POSITION
error INSUFFICIENT_REWARD_POSITION()
INVALID_POSITION_INDEX
error INVALID_POSITION_INDEX()
INVALID_POSITION
error INVALID_POSITION()
LIQUIDITY_IS_CURRENTLY_BELOW_CONVERSATION_LIMIT
error LIQUIDITY_IS_CURRENTLY_BELOW_CONVERSATION_LIMIT()
LIQUIDITY_RATIO_DURING_RESET_OF_OPTIMAL_RATIO_CANNOT_BE_GREATER_THAN_THE_OPTIMAL_RATIO
error LIQUIDITY_RATIO_DURING_RESET_OF_OPTIMAL_RATIO_CANNOT_BE_GREATER_THAN_THE_OPTIMAL_RATIO()
MAXIMUM_REWARD_RATIO_CANNOT_BE_LESS_THAN_THE_OPTIMAL_RATIO
error MAXIMUM_REWARD_RATIO_CANNOT_BE_LESS_THAN_THE_OPTIMAL_RATIO()
NOT_OPEN_REWARDS_CONVERSATION
error NOT_OPEN_REWARDS_CONVERSATION()
OPEN_REWARDS_ALREADY_INITIALIZED
error OPEN_REWARDS_ALREADY_INITIALIZED()
OPEN_REWARDS_ALREADY_STARTED
error OPEN_REWARDS_ALREADY_STARTED()
OPEN_REWARDS_IS_ACTIVE
error OPEN_REWARDS_IS_ACTIVE()
OPEN_REWARDS_IS_NOT_ACTIVE
error OPEN_REWARDS_IS_NOT_ACTIVE()
OPEN_REWARDS_SHOULD_START_AT_R_OPTIMAL_OR_LESS
error OPEN_REWARDS_SHOULD_START_AT_R_OPTIMAL_OR_LESS()
OPTIMAL_REWARD_RATIO_CANNOT_BE_ZERO
error OPTIMAL_REWARD_RATIO_CANNOT_BE_ZERO()
POOL_IS_BUSY
error POOL_IS_BUSY()
POSITIONS_ARE_MORE_THAN_TWENTY_TRY_GETTING_THEM_ONE_AT_A_TIME
error POSITIONS_ARE_MORE_THAN_TWENTY_TRY_GETTING_THEM_ONE_AT_A_TIME()
R_OPTIMAL_CANNOT_BE_ZERO
error R_OPTIMAL_CANNOT_BE_ZERO()
REQUEST_IS_NOT_WITHIN_ACCEPTED_RANGE
error REQUEST_IS_NOT_WITHIN_ACCEPTED_RANGE()
REQUESTOR_IS_NOT_ADMIN_FOR_THIS_ACCESS_KEY
error REQUESTOR_IS_NOT_ADMIN_FOR_THIS_ACCESS_KEY()
REQUESTOR_IS_NOT_OWNER_OF_POSITION
error REQUESTOR_IS_NOT_OWNER_OF_POSITION()
REWARD_WITHDRAWAL_TYPE_C_ERROR
error REWARD_WITHDRAWAL_TYPE_C_ERROR(string)
REWARDS_TRANSFER_FAILED
error REWARDS_TRANSFER_FAILED()
SEEDS_ARE_TOO_MUCH
error SEEDS_ARE_TOO_MUCH()
ZERO_NOT_ALLOWED
error ZERO_NOT_ALLOWED()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d739803bde432ba55ed495f8fad86c6edce1234c2995af43d82803e903d91602b57fd5bf3