QUICK START
The fastest way to use PicWe is to call buy and sell functions in the client contract. This way, you can buy tokens from any other chain through our cross-chain protocol, all on one chain.
BUY SELL
Copy function buyTokens (
uint256 _stableCoinAmount ,
uint256 _targetchainId ,
address _tokenAddress ,
address _stableCoinAddress ,
address _sourceStableCoinAddress ,
uint256 _tokenAmount ,
uint256 _startPrice ,
uint256 _endPrice ,
uint256 _duration
)
_stableCoinAmount The amount of stable coins to use for the purchase.
_targetchainId The ID of the chain to buy the tokens on.
_tokenAddress The address of the token to buy.
_stableCoinAddress The address of the stable coin to use for the purchase.
_sourceStableCoinAddress The address of the stable coin to use for the purchase.
_tokenAmount The amount of tokens to buy.
Copy function sellTokens (
uint256 _tokenAmount ,
uint256 _targetchainId ,
address _tokenAddress ,
address _stableCoinAddress ,
address _sourceStableCoinAddress ,
uint256 _stableCoinAmount ,
uint256 _startPrice ,
uint256 _endPrice ,
uint256 _duration
)
_tokenAmount The amount of tokens to sell.
_targetchainId The ID of the chain to sell the tokens on.
_tokenAddress The address of the token to sell.
_stableCoinAddress The address of the stable coin to use for the purchase.
_sourceStableCoinAddress The address of the stable coin to use for the purchase.
_stableCoinAmount The amount of stable coins to use for the purchase.
Last updated 6 months ago