EasyFi Electric on Binance Smart Chain

A Guide to conducting Margin Trading on Pancakeswap Testnet using Electric

EasyFi Network
EasyFi Network
Published in
4 min readNov 15, 2022


Electric Smart Contracts have now been deployed on the BSC Testnet on BNB Chain. The following screenshots have been taken from Electric’s Alpha release UI on the BSC Testnet. The process to open and close a margin trade has been explained screen-by-screen.

The Electric Testnet is connected to the PancakeSwap Testnet to enable the margin trades.

#1: Connecting Your Wallet to Electric Testnet

Connect your Metamask wallet to the Electric App. Ensure that you are on BSC Testnet.

Asset Pools Page with list of assets available to Trade

#2: Adding xUSDC from Faucet

The Testnet version of Electric has one asset to test on called xUSDC. Click on “Faucet” shown on the top right of the Pool page.

Obtaining xUSDC from EasyFi Faucet

On clicking the Faucet link, you will be asked for adding your BSCScan Testnet Wallet Address. Paste your wallet address in the space provided and “Send Request”.

Please note: These tokens have no value on any blockchain mainnet and are minted only for testing and experience purposes.

Requesting for xUSDC transfer from EasyFi Faucet to your BSC Testnet Wallet
Confirming xUSDC Transfer on BSCScan Testnet

#3: Supplying Assets to the Liquidity Pool

To get started on Electric, the user needs to “Deposit” an asset as collateral to the pool of assets shown here — in this case you have to deposit xUSDC of course. Also select the leverage you want to obtain on this deposit.

Follow the process of Approval and Confirmation of the process of Blockchain (BSC Testnet).

Adding Asset amount and Loan details in Leverage
Deposit Approval for Asset
Collateral Deposit Confirmation for xUSDC
Confirming Asset Deposit with Leverage
Checking on BSCScan Testnet for Transactions

#4: Opening new margin positions & Trade

Once the asset is deposited in the pool, the Margin and Trade options will be activated for the user. You can open multiple Margin Positions for different trades using xUSDC.

Trade & margin adjustment options are activated

Click on Trade on the above screen. It leads to the screen below (Figure 11) that will create the pair that you intend to trade on PancakeSwap DEX (Testnet).

Select the Input token and the Output Token to create the margin trading pair.

Selecting the Input & Output tokens to create the Margin Trading Pair
Confirming the Trade on Blockchain
Transaction Complete Confirmation
Corresponding Transactions on BSCScan

#5: Checking & Closing Your Trade Positions

We move to the next tab on the screen that displays all the trade positions currently live and closed by the user. This page allows you to close any position you have based on your plan for Profits / loss strategy.

On Clicking the Close Position Button, the system calculates your Profit & Loss (P & L) and the Value of the profit or loss in USD.

Checking Your Trade Positions
Closing the Margin Position on AMM
Close Position Confirmation in Wallet
Position Closed on Electric & AMM

#6: Verifying Transactions on BSCScan Testnet

You can check & verify the above transactions on BSCScan Testnet for Creating Position & Closing Position.

Electric Margin Trading Transactions on BSC Testnet Blockchain

About EasyFi Electric

Electric is a decentralized, permissionless, scalable, secure, leverage trading platform, from EasyFi, that enables traders to take out short-term loans to trade margin positions from publicly sourced liquidity from different AMMs / decentralized exchanges.

Litepaper: https://bit.ly/EasyFi-Electric-Litepaper

About EasyFi

EasyFi Network is a universal layer-2 multi-chain money market protocol for digital assets with focus on liquidity sourcing & capital efficiency for structured lending in a non-custodial manner. The Protocol is currently live on Polygon, Binance Smart Chain and Ethereum.

Website | Twitter | Telegram | Whitepaper | Blog | App | Electric Litepaper

To learn more about $EZ and EasyFi, please go through our whitepaper and other articles on this publication. Stay tuned for more news & updates on our Telegram channel and join the official group. You can also follow us on Twitter.



EasyFi Network
EasyFi Network

EasyFi Network is a Layer 2 DeFi Lending protocol for Digital Assets. Taking a strong community-oriented governance approach with $EZ