# Smart contracts

We have several smart contracts backing Minimax app. For ease of access and management, we have a small contract `Deployments`, which stores all most current contracts addresses by keys. Moreover, we use `Proxy` contracts, and all transaction go through them.&#x20;

To see the code of any Minimax contract, one should get proxy address by a [specific key](#deployment-keys) from `Deployments` contract. This can be done by opening `Deployments` contract trhough scan, opening `Contract` section and choosing `deployments` button from `Read Contract`.

<figure><img src="https://925634479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq0ajUvlrjSdHNc6DCUWq%2Fuploads%2FHTjmQwXMXBzc0aqu20C2%2Fdeployments.png?alt=media&#x26;token=ebaa446f-0aa0-4096-a3fa-ad57f359cafb" alt=""><figcaption><p>Deployments example</p></figcaption></figure>

### Deployment keys

Here is a list of Minimax contracts keys for `Deployments` contract&#x20;

* `Base` - main contract, that stores positions and handles deposits and withdraws
* `Advanced` - contract, that provides advanced operations, such as conversion deposits and withdraws, liquidation
* `MinimaxMarket` - contract for Minimax Swap and converstion deposits and withdraws

### Contract addresses

#### **BNB Chain**

ProxyAdmin – [0x48376979c2aDB31EE0e574084a8843B1112525d9](https://bscscan.com/address/0x48376979c2aDB31EE0e574084a8843B1112525d9)

Deployments - [0x5D6397a2aC36762d1A8F96b0cA915c49c2958D84](https://bscscan.com/address/0x5D6397a2aC36762d1A8F96b0cA915c49c2958D84)

#### **Polygon**

ProxyAdmin – [0xA205c55FdCD98A64AbE3B2cF3DE01DC8509D02b5](https://polygonscan.com/address/0xA205c55FdCD98A64AbE3B2cF3DE01DC8509D02b5)

Deployments - [0x8f441e875C67e908Bb0e407d48D002E8a7BDcDD4](https://polygonscan.com/address/0x8f441e875C67e908Bb0e407d48D002E8a7BDcDD4)

#### **Fantom**

ProxyAdmin – [0x2e34168Bf6532523AD01A73394Ce7Fb634898F26](https://ftmscan.com/address/0x2e34168Bf6532523AD01A73394Ce7Fb634898F26)

Deployments - [0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b](https://ftmscan.com/address/0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b)

#### **Avalanche**

ProxyAdmin – [0x2e34168Bf6532523AD01A73394Ce7Fb634898F26](https://snowtrace.io/address/0x2e34168Bf6532523AD01A73394Ce7Fb634898F26)

Deployments - [0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b](https://snowtrace.io/address/0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b)

#### **Arbitrum**

ProxyAdmin – [0x2e34168Bf6532523AD01A73394Ce7Fb634898F26](https://arbiscan.io/address/0x2e34168Bf6532523AD01A73394Ce7Fb634898F26)

Deployments - [0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b](https://arbiscan.io/address/0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b)

#### **Aurora**

ProxyAdmin – [0x2e34168Bf6532523AD01A73394Ce7Fb634898F26](https://aurorascan.dev/address/0x2e34168Bf6532523AD01A73394Ce7Fb634898F26)

Deployments - [0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b](https://aurorascan.dev/address/0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b)

#### **Moonbeam**

ProxyAdmin – [0x495430C075a1670D1810C9c2c3745f7D0B09937a](https://moonscan.io/address/0x495430C075a1670D1810C9c2c3745f7D0B09937a)

Deployments - [0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b](https://moonscan.io/address/0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b)

#### Ethereum

ProxyAdmin - [0x1193320eA26E043A75033a5ad839236a30De8218](https://etherscan.io/address/0x1193320eA26E043A75033a5ad839236a30De8218)

Deployments - [0x17b92cc90425090E706E3d602068dD58b99B8f1f](https://etherscan.io/address/0x17b92cc90425090E706E3d602068dD58b99B8f1f)

#### **Meter**

ProxyAdmin – [0x8319b78cB30528c96c6102DA9D1e14B4eBD26B7a](https://scan.meter.io/address/0x8319b78cb30528c96c6102da9d1e14b4ebd26b7a)

Deployments - [0x46302D86973cd300cACD35eA738032c597EdBB07](https://scan.meter.io/address/0x46302d86973cd300cacd35ea738032c597edbb07)
