Questions tagged [fa1.2]
The fa1.2 tag has no usage guidance.
14
questions
1
vote
2
answers
55
views
TzKt not recognising the tokens of my contract
TzKt can recognize the FA1.2 and FA2 tokens like this one:
https://ghostnet.tzkt.io/KT1WkGNtcuGq6Rxh8CPSn9J1z7vgxsupBYps/operations/
Here, it understands that it is a token with GaGe as its symbol. ...
1
vote
1
answer
31
views
Pattern by which you can determine that this is a FA2 contract, and not FA1.2
i want to understand how tzkt indexer works. If there is some pattern by which you can determine that this is a fa2 contract, and not fa1.2? Maybe there is a prefix by which you can determine? I saw ...
1
vote
1
answer
53
views
how to calculate current storage values for liquidity baking CPMM
In looking at the storage values of the CPMM one can see that as of right now the CPMM has the following amounts of tzBTC (represented by the contract as tokenPool), xtz (represented as xtzPool), and ...
0
votes
1
answer
166
views
how to send a nat value other than a whole number
How can I send a nat value to a contract that represents a data type which is not a whole number?
For example, the xtzToToken entrypoint of the tzBTC contract allows a user to call the xtzToToken ...
1
vote
1
answer
134
views
how to calculate the value of a single LQT token for Liquidity Baking?
In looking at the Granadanet contract storage, I can see the amount of tzBTC, Tez, and LQT tracked in/by the CPMM.
Here are those values as of writing this:
tokenPool 45805
xtzPool 111379958864916
...
0
votes
2
answers
81
views
what is the Liquidity Baking subsidy used for and how do liquidity providers benefit?
I've read the official Tezos docs on liquidity baking. However these docs do not explain how the subsidy will be used, or what it's even for.
How will this subsidy be used, and how will liquidity ...
0
votes
1
answer
129
views
call to 'approve' entrypoint of tzBTC contract failing with 'UnsafeAllowanceChange'
I'm trying to call addLiquidity on the Liquidity Baking CPMM. I've already called xtzToToken on the CPMM and given my address tzBTC. I can see that my address has tokens on the tzBTC contract when I ...
3
votes
1
answer
67
views
what's a sensible minLqtMinted to send to the Liquidity Baking CPMM when calling addLiquidity?
I'm trying to understand what a sensible value is for the liquidity token (LQT) parameter when calling the Liquidity Baking CPMM.
I'm reading the Dexter docs here, since the CPMM is a fork of the ...
2
votes
1
answer
102
views
Can't get tzBTC out of the tzBTC Granadanet contract
i'm trying to (eventually) add liquidity to the Liquidity Baking CPMM contract on Granadanet. In order to add liquidity, I need some tzBTC from the tzBTC contract here.. I cannot, for the life of me, ...
1
vote
1
answer
115
views
Contract does not exist
I'm using a Granadanet node to experiment with Liquidity Baking. I'm trying to call the tzBTC contract's mint entry point.
This is my first time using a test net, but I thought that it was a copy of ...
1
vote
1
answer
48
views
Tweaking FA1.2 to add level based balance snapshots to assist token voting in a DAO
DAOs functioning on a token voting mechanism (using either FA1.2 or FA2) mostly require the locking up of tokens for the entirety of the voting period essentially to prevent double-voting or any form ...
1
vote
1
answer
248
views
Best way to create FA1.2 token with TZIP016
What is the best way to implement a FA1.2 token with TZIP-016 metadata (symbol, name, decimals...)?
I am using SmartPy.
So far, I noted two methods:
the first one is to implement a FA1.2 token with a ...
0
votes
1
answer
36
views
How to attach data to an error
The FA1.2 standard specifies that the NotEnoughAllowance error should contain a nat: required, nat: present pair. How do I attach this kind of data to a failwith call?
I am writing the token contract ...
3
votes
2
answers
148
views
How to correctly implement an interface to an FA1.2 contract, from a programming language?
I am trying to implement a Java interface to be able to call FA1.2 smart contract entrypoints programmatically. This is what I've got now:
public interface FA12
{
public JSONObject transfer(String ...