https://github.com/dwarvesf/contract-icy-swap
Contract for swapping ICY token to USDC token
https://github.com/dwarvesf/contract-icy-swap
dapp hardhat smartcontract solidity typescript
Last synced: about 1 month ago
JSON representation
Contract for swapping ICY token to USDC token
- Host: GitHub
- URL: https://github.com/dwarvesf/contract-icy-swap
- Owner: dwarvesf
- Created: 2022-11-15T22:04:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T04:34:57.000Z (over 2 years ago)
- Last Synced: 2025-03-20T09:58:32.234Z (about 1 year ago)
- Topics: dapp, hardhat, smartcontract, solidity, typescript
- Language: Solidity
- Homepage:
- Size: 135 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IcySwap Contract
## Contracts
- **ICYSwap:**
[0x8De345A73625237223dEDf8c93dfE79A999C17FB](https://polygonscan.com/address/0xd327B6D878bCD9D5EC6a5BC99445985d75F0D6E5#readContract) (USDT)
[0xd327B6D878bCD9D5EC6a5BC99445985d75F0D6E5](https://polygonscan.com/address/0xd327B6D878bCD9D5EC6a5BC99445985d75F0D6E5#readContract) (USDC.e)
## How to run project
1. Install deps with `yarn`
2. To run unit test, use command `npx hardhat test`
3. cp .env.example .env and update env configs
4. Deploy contracts with `npx hardhat run deploy/deploySwap.ts`
## Note
- Still in experiment. DYOR!
## Todo list
### Feature
- [x] Swap ICY -> USDC
- [x] SetConversionRate
- [x] WithdrawToOwner
- [x] Ownable
- [x] Pausable
- [ ] Staking ICY
### Test
- [x] Swap
- [x] SetConversionRate
- [x] WithdrawToOwner