FarToken

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x4f2968c4 at 23291187
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "FarToken"

No transactions found for "FarToken"


Functions
Getter at block 23895916
MAX_ORDER_REFERRER_FEE_BPS(view returns (uint256)
1500
MAX_PLATFORM_REFERRER_FEE_BPS(view returns (uint256)
1500
MAX_TOTAL_SUPPLY(view returns (uint256)
1000000000000000000000000000
MIN_ORDER_SIZE(view returns (uint256)
100000000000
ORDER_REFERRER_FEE_BPS(view returns (uint256)
1000
PROTOCOL_FEE_BPS(view returns (uint256)
7500
TOKEN_CREATOR_FEE_BPS(view returns (uint256)
0
TOTAL_FEE_BPS(view returns (uint256)
100
WETH(view returns (address)
0x4200000000000000000000000000000000000006
bondingCurve(view returns (address)
0x0000000000000000000000000000000000000000
currentExchangeRate(view returns (uint256)
0
decimals(view returns (uint8)
18
marketType(view returns (uint8)
0
name(view returns (string)
nonfungiblePositionManager(view returns (address)
0x03a520b32c04bf3beef7beb72e919cf822ed34f1
orderReferrerFeeBps(view returns (uint256)
0
platformReferrer(view returns (address)
0x0000000000000000000000000000000000000000
platformReferrerFeeBps(view returns (uint256)
0
poolAddress(view returns (address)
0x0000000000000000000000000000000000000000
protocolFeeRecipient(view returns (address)
0xa679568586ab40ce14b187bc1993dac1ba1372c6
protocolRewards(view returns (address)
0x47604ee7c659dcbcd5c2c5ef56588a4f5f2539b4
state(view returns (struct IFarTokenMarketState)
(0, 0x4e2d3199e96d98fe3c28511a0c9d77e8e8988349)
swapRouter(view returns (address)
0x2626664c2603336e57b271c5c0b26f421741e481
symbol(view returns (string)
tokenCreator(view returns (address)
0x0000000000000000000000000000000000000000
tokenURI(view returns (string)
totalSupply(view returns (uint256)
0
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getEthBuyQuote(uint256 ethOrderSizeview returns (uint256)
getEthSellQuote(uint256 ethOrderSizeview returns (uint256)
getTokenBuyQuote(uint256 tokenOrderSizeview returns (uint256)
getTokenSellQuote(uint256 tokenOrderSizeview returns (uint256)
onERC721Received(addressaddressuint256bytesview returns (bytes4)
State-modifying
approve(address spenderuint256 valuereturns (bool)
burn(uint256 tokensToBurn
buy(address recipientaddress refundRecipientaddress orderReferrerstring commentuint8 expectedMarketTypeuint256 minOrderSizeuint160 sqrtPriceLimitX96payable returns (uint256)
initialize(address _tokenCreatoraddress _platformReferreraddress _bondingCurvestring _tokenURIstring _namestring _symboluint256 _platformReferrerFeeBpsuint256 _orderReferrerFeeBpspayable 
sell(uint256 tokensToSelladdress recipientaddress orderReferrerstring commentuint8 expectedMarketTypeuint256 minPayoutSizeuint160 sqrtPriceLimitX96returns (uint256)
transfer(address touint256 valuereturns (bool)
transferFrom(address fromaddress touint256 valuereturns (bool)
uniswapV3SwapCallback(int256 amount0Deltaint256 amount1Deltabytes
Events
Approval(address indexed owneraddress indexed spenderuint256 value
FarTokenBuy(address indexed buyeraddress indexed recipientaddress indexed orderReferreruint256 totalEthuint256 ethFeeuint256 ethSolduint256 tokensBoughtuint256 buyerTokenBalancestring commentuint256 totalSupplyuint8 marketType
FarTokenFees(address indexed tokenCreatoraddress indexed platformReferreraddress indexed orderReferreraddress protocolFeeRecipientuint256 tokenCreatorFeeuint256 platformReferrerFeeuint256 orderReferrerFeeuint256 protocolFee
FarTokenMarketGraduated(address indexed tokenAddressaddress indexed poolAddressuint256 totalEthLiquidityuint256 totalTokenLiquidityuint256 lpPositionIduint8 marketType
FarTokenSell(address indexed selleraddress indexed recipientaddress indexed orderReferreruint256 totalEthuint256 ethFeeuint256 ethBoughtuint256 tokensSolduint256 sellerTokenBalancestring commentuint256 totalSupplyuint8 marketType
FarTokenTransfer(address indexed fromaddress indexed touint256 amountuint256 fromTokenBalanceuint256 toTokenBalanceuint256 totalSupply
Initialized(uint64 version
Transfer(address indexed fromaddress indexed touint256 value
Constructor
constructor(address _protocolFeeRecipientaddress _protocolRewardsaddress _wethaddress _nonfungiblePositionManageraddress _swapRouter
Fallback and receive
receive(
Errors
AddressZero(
ERC20InsufficientAllowance(address spenderuint256 allowanceuint256 needed
ERC20InsufficientBalance(address senderuint256 balanceuint256 needed
ERC20InvalidApprover(address approver
ERC20InvalidReceiver(address receiver
ERC20InvalidSender(address sender
ERC20InvalidSpender(address spender
EthAmountTooSmall(
EthTransferFailed(
InitialOrderSizeTooLarge(
InsufficientFunds(
InsufficientLiquidity(
InvalidInitialization(
InvalidMarketType(
MarketAlreadyGraduated(
MarketNotGraduated(
NotInitializing(
OnlyPool(
OnlyWeth(
OrderReferrerFeeTooHigh(
PlatformReferrerFeeTooHigh(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
SlippageBoundsExceeded(