withdrawReserve
params of yAssetParams -> (list(op), storage upd)
Usage
const tokenId = 0; // or new BigNumber(0) or "0"
const amount = 10_000_000; // or new BigNumber(10_000_000) or "10000000"
const yupana = await tezos.contract.at(yTokenAddress);
const operation = await yupana.methods.withdrawReserve(tokenId, amount).send();
await operation.confirmation();token_id = 0
amount = 10_000_000
yupana = ContractInterface.from_michelson(code) # or client.contract(contract_address)...
call = yupana.withdrawReserve(token_id, amount)
opg = call.inject()Errors
Last updated