A fungible token to distribute on-chain rewards for Poolshark.
This token is an implementation of xERC20 using Solady's ERC-20 as a base.
The specification for xERC20 is detailed in the ERC-7281 Ethereum Magicians post by Arjun Bhuptani.
xERC20s are natively crosschain without compromises. This makes your token:
- Transferrable across chains with no slippage.
- Deployed and fully controlled by you, the token issuer, including the ability to set rate limits on a per-bridge basis.
git clone https://github.com/poolshark-protocol/fin-token
cd fin-token
yarn install
Tests can be run via the following commands.
Only Hardhat is supported for now, with Foundry support soon to follow.
yarn clean
yarn compile
yarn test
Contracts can be deployed onto Arbitrum Goerli using the deploy script:
npx hardhat deploy-fintoken --network arb_goerli
ERC-20: Token Standard
ERC-2612: Permit Extension for EIP-20 Signed Approvals
ERC-7281: Sovereign Bridged Tokens
Some parts of this repository may not be compatible with chains with partial EVM equivalence.
Please always check and test for compatibility accordingly.