PTokenFactory
Introduction
Create pToken
PTokenFactory
function createPToken(address underlying_) external returns (uint)Solidity
Erc20 underlying = Erc20(0xToken...);
PTokenFactory factory = PTokenFactory(0xABCD...);
require(factory.createPToken(address(underlying)) == 0, "something went wrong");Web3 1.0
const underlying = "0xToken..."
const factory = PTokenFactory.at(0x3FDB...);
factory.methods.createPToken(underlying).send({from: ...});Checking asset liquidity
PTokenFactory
Solidity
Web3 1.0
Last updated