
The blockchain infrastructure Rangers Protocol test network has completed its final deployment and went online on July 19, and announced its first dApp ported from Ethereum, the decentralized lending protocol BlueStone.
BlueStone is an efficient decentralized lending protocol that can provide users with stable lending rates. Borrowing providers generally use the "Lend" function in BlueStone to provide liquidity to the lending pool. As a loan provider, users can freely choose the tokens to lend and the lending period. Borrowers generally use the "Borrow" function. Borrowers can freely choose a loan portfolio and only need to bear a fixed loan interest rate. In addition to loan providers and borrowers, developers can also deploy a decentralized lending platform based on BlueStone.
A few days ago, the Rangers Protocol team received a very detailed dApp porting experience from the BlueStone team, and now it is announced to all developers and users. The team hopes that through this experience report, everyone will have a more intuitive experience of the performance of Rangers Protocol.
Thanks to the fact that Rangers Protocol is fully compatible with Ethereum EVM and can be highly integrated with Truffle and MetaMask, the migration process of dApps from Ethereum to Rangers Protocol is very developer-friendly and smooth. It is mainly reflected in the following aspects:
No contract changes required
Since Rangers Protocol is fully compatible with Ethereum EVM, BlueStone, which was originally based on Ethereum, can be directly deployed on Rangers Protocol without any modification.
Contract deployment without failure
by running"truffle migrate --network main", developers can deploy dozens of contracts to the Ethereum mainnet or testnet. The Rangers Protocol team recognizes the convenience that Truffle Migrate brings to the development of dApps, so Rangers Protocol fully supports this feature. Therefore, deploying dApps to Rangers Protocol is fairly simple.
First, add the network information of Rangers Protocol to truffle-config.js. Just like the Ethereum testnet, Rangers Protocol provides a JSON-RPC API: https://testnet.rangersprotocol.com/api/jsonrpc that can be used to start a wallet provider. Then use the network name specified by truffle-config.js to execute the truffle migrate command to deploy all contracts to Rangers Protocol.
While the process of deploying a dApp to both chains is the same, the experience on Rangers Protocol is indeed more developer-friendly. It is reflected in two aspects of lower cost and faster speed. Truffle interacts with the network using a fixed gas fee that we specify in truffle-config.js. Since the gas fee of Ethereum fluctuates greatly, we must specify a relatively high gas fee in truffle-config.js to ensure that the dApp deployment can be completed within a reasonable time frame. However, how high the gas fee needs to be specified is more controversial, because the higher the specified gas fee, the more dollars will be consumed, resulting in waste. However, Rangers Protocol removes this concern with a flat fee of 0.0001RPG per transaction. In addition, the block generation time of Rangers Protocol is faster than that of Ethereum, so our deployment speed on Rangers Protocol is much faster than that on Ethereum.
Minimal front-end changes
Rangers Protocol is highly integrated with MetaMask. Just like supporting the Ethereum testnet, we only need to integrate the necessary contract addresses in the front-end code and interact with them when Matamask is in the Rangers Protocol network (Chain ID: 9527). If your front end is not calling any JSON RPC methods, or the returned payload is missing any required values, the Rangers Protocol team will try to help you where possible. They are very responsive and efficient in solving problems. They are always in our shoes and try to solve the problems encountered.
Web3 script
Rangers Protocol's package manager is Web3 compliant. We have some maintenance scripts that can interact with Ethereum smart contracts using Web3. The code can remain unchanged by importing the Rangers Protocol version of the Web3 package.
Rangers Protocol is still in its early stages and lacks some DeFi infrastructure, such as a reliable price oracle. For now we still need to create our own price oracle.
In my opinion, the core of the Rangers Protocol team are developers, just like Apple. They strive to remove every possible obstacle for developers during the development process. I sincerely believe that they will continue to do so and that more blockchain wallets and tools will be added to the Rangers Protocol ecosystem in the future.
During the communication, the BlueStone team also specifically mentioned that the GAS Price of Rangers Protocol is fixed and very low. Therefore, BlueStone based on Ethereum has two very big advantages in terms of Gas Price compared with BlueStone based on Rangers Protocol:
image description
image description
Borrowing transaction time
2. From the perspective of users, although lending agreements are all low-frequency operations, from this perspective, there is not much difference between floating Gas Price and fixed Gas Price. But in the following two cases, fixed Gas Price will have great advantages:
When the market is turbulent, the Ethereum Gas Price rises to hundreds of thousands of Gwei, and each operation costs tens of hundreds of dollars, or even more. At this time, users often need to perform operations such as margin replenishment, which not only costs a lot of handling fees, but also often delays the best time to replenish margin due to Gas Price.
Some complex operations consume a lot of gas. Even if the Gas Price is low, the Gas Fee will be high, such as when the user performs the "Borrow" operation on BlueStone. It is also common for complex operations of other DeFi protocols to consume more contracts.
Finally, in other DeFi applications, especially transactional DeFi applications, arbitrageurs will choose to pay high gas fees to obtain interest margins in transactions, such as sandwich attacks and intercepting other users' transactions. Nothing like that happens on Rangers Protocol. Because the block generation mechanism is confirmed upon block generation, most transactions can return execution results in real time, and users do not need to wait for block generation. Applied in BlueStone, the user's loan transaction can be responded immediately, and wallet authorization and transfer can be performed without long waiting.
BlueStone is just a starting point - allowing developers to first experience the smooth operation process of DeFi applications migrating from Ethereum to Rangers Protocol. In the near-term plan, Rangers Protocol will be connected to more diversified on-chain applications, and the team is also developing demos related to NFT applications to provide developers with cases. As a blockchain infrastructure that can create highly customized NFT and complex game applications, Rangers Protocol adopts the most cutting-edge cross-chain technology based on TSS (Threshold Signatures Scheme), which can achieve NFT casting, use, cross-chain Data display of the chain and other full life cycles.
Previously, Rangers Protocol officially announced a strategic cooperation with DeHero, the chain game with the second largest NFT trading volume on BSC. When Rangers Protocol is officially launched, DeHero will become a new NFT application in the Rangers Protocol ecosystem and develop a new version.
Rangers Protocol currently allows developers to migrate Ethereum-based dApps to the test network and deploy smart contracts. Developers and users can apply for testing permission by sending emails to tech@rangersprotocol.com.