Smart Contracts on Polygon Network
Below is a list of smart contracts for the test environment on the Polygon network. Production addresses will be added later.
Contract Name | Test | Mainnet Address |
---|---|---|
CrowdexExchange | 0x8D04C9448E5f6e43FF93C0d462E5E59a447193D4 | 0xBF17F3698b226Dc95b074eA104c83C1632726DB5 |
oPLN | 0x8158164D664628b5d98F1265b43F841657761E58 | 0xFafCD0E06Ae9B9377f073a21d197aBAd7A93Dc9d |
Reward Token | 0x42F3DC247c0209A8E773f5E621220085D4A476a4 | 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 |
Operational Wallet (Admin) | 0x872f70385aD685b78d70c8b0Ec0483003A3C7cFa | 0x872f70385aD685b78d70c8b0Ec0483003A3C7cFa |
Crowdex Utility Token | 0xA443ee15ac327075dA58377e5246439Ed74Dd464 | 0xA443ee15ac327075dA58377e5246439Ed74Dd464 |
BNXT Drop | 0xDeDDF888c649eD8426E2DA02053187FBABd81eB8 | 0x957eF699BD4E3E9CB6FD5eCeFAaC7A246216eF19 |
Sale Recipient | 0x0830982bfb11e819d0db6139BeBccDf4be3D20a9 | 0x0830982bfb11e819d0db6139BeBccDf4be3D20a9 |
Network: Polygon
Stablecoins
CrowdexExchange
This smart contract allows to exchange crypto stablecoins for oPLN. Besides it also participates in the process of bank transfers. Alchemy webhooks are listening for Exchange events from this smart contract.
What you need to configure first?
Stablecoins
- Go to https://polygonscan.com/ (opens in a new tab), open CrowdexExchange smart contract and open "Contract" tab. You should be the owner of the contract.
- Open "Write contract" tab and find setStablecoinRate function.
- Connect metamask to the polygonscan and call setStablecoinRate function with the following parameters:
- stablecoin: address of the stablecoin contract
- rate: rate of the stablecoin in oPLN. For example, if 1 oPLN is 0.25 USDC, then rate is 0.25 * 10^6 = 250000
- Besdies, you also should add crowdex utility stablecoin that should be 1 to 1 with oPLN. This is to track acceptance of bank transfers in PLN. You should add it with following rate: 1 oPLN is 1 PLN, then rate is 1* 10^18 = 1000000000000000000

Recipient
- Set the recipient address for stablecoins. All stablecoins will be transfered to this address. Run function setRecipient
Allowance
- In order for platform to operate correctly, the admin wallet should have certain amount of utility tokens, so it can transfer them during bank transfer. But in addition, adress should allow CrowdexExchange to spend this amount of tokens. You can navigate to polygonscan contract's page and set allowance to maximum:
- run approve function with following parameters:
- spender: address of the CrowdexExchange contract
- amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935