Configuration
Smart Contracts

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 NameTestMainnet Address
CrowdexExchange0x8D04C9448E5f6e43FF93C0d462E5E59a447193D40xBF17F3698b226Dc95b074eA104c83C1632726DB5
oPLN0x8158164D664628b5d98F1265b43F841657761E580xFafCD0E06Ae9B9377f073a21d197aBAd7A93Dc9d
Reward Token0x42F3DC247c0209A8E773f5E621220085D4A476a40x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Operational Wallet (Admin)0x872f70385aD685b78d70c8b0Ec0483003A3C7cFa0x872f70385aD685b78d70c8b0Ec0483003A3C7cFa
Crowdex Utility Token0xA443ee15ac327075dA58377e5246439Ed74Dd4640xA443ee15ac327075dA58377e5246439Ed74Dd464
BNXT Drop0xDeDDF888c649eD8426E2DA02053187FBABd81eB80x957eF699BD4E3E9CB6FD5eCeFAaC7A246216eF19
Sale Recipient0x0830982bfb11e819d0db6139BeBccDf4be3D20a90x0830982bfb11e819d0db6139BeBccDf4be3D20a9

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

  1. 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.
  2. Open "Write contract" tab and find setStablecoinRate function.
  3. 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
  4. 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
Dividends

Recipient

  1. Set the recipient address for stablecoins. All stablecoins will be transfered to this address. Run function setRecipient

Allowance

  1. 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