Questions tagged [fantom]
The fantom tag has no usage guidance.
41
questions
0
votes
1
answer
8
views
Is it possible to transfer USDC from Fantom Opera network to BEP-20 network?
I have tried couple of bridging websites like Anyswap, Spookyswap but it failed badly. My coins are stuck in Fantom network. I want to switch them to other network, any suggestion?
0
votes
0
answers
12
views
How to run a public blockchain with one node and one full node
I want to create a personal blockchain for myself, for example, a fork of the Fantom network and public it
What should I do now?
Actually what code should I use, what changes should I make to change ...
0
votes
1
answer
25
views
Transaction Decoding on Fantom. I can't extract the data I need
This is the first question I post here so I hope my question asked properly.
I'm scanning the Fantom mempool searching for specific types of functions that interfere with pairs liquidity. I'm having ...
0
votes
0
answers
20
views
Fantom cannot approve spending USDC token
I am doing simple approve operation on USDC token in Fantom network.
Here is my payload:
functionParams {
from: '0xd775b00b5cf6e954aed8408202367a1bae6ac55f',
to: '...
1
vote
1
answer
66
views
Not understanding gas calculation on an EVM network [Fantom]
This is a question about Gas fees for transactions. The bottom line is I can't understand the price (in gas units) of transaction - And I will walk you through a specific transaction to show you my ...
0
votes
0
answers
65
views
Verifying if Mummy Finance on Fantom is a Fork of GMX: Identical On-Chain Code
Hello StackExchange community,
I am interested in investing in a protocol called Mummy Finance, which is built on the Fantom network. The developers of Mummy Finance claim that their project is a fork ...
1
vote
0
answers
26
views
Real-time subscription to events in fantom?
I've tried to listen to events using websockets.
import asyncio, json
from websockets import connect
wss = 'wss://wsapi.fantom.network'
params = json.dumps({"id": 1, "method": &...
4
votes
1
answer
417
views
Swap 2 tokens directly with Pair, without Router
It is possible to swap tokens, interacting directly with the pair, and not with router?
If it's possible I can receive an example (explanation, not necessarily the code)
For example:
Blockchain: ...
0
votes
4
answers
248
views
Debug a deployed smart contract
Please tell me about some methodologies or tools for debugging already deployed smart contracts, as some crypto protocols don't support testnets. I am currently using a cheap blockchain (Fantom) for ...
0
votes
0
answers
37
views
Get the quantity of ERC20 Tokens using websocket
Blockchain: Fantom
I want to get the quantity of ERC20 Tokens of a smart contract (represents a pair) using websocket.
This is the contract: https://ftmscan.com/tokenholdings?a=...
1
vote
0
answers
114
views
sushiswap flash loan never makes a profitable trade?
Any ideas as to why this flashloan contract isn't working?
getting prices from a pricing aggregator
I've verified the prices are accurate
Thought that maybe it was because of slippage/liquidity but ...
0
votes
2
answers
42
views
Reserves are not changed after swap tokens
I forked Fantom network.
And I use UniswapV2Router02, WrappedFtm, Btc contracts deployed on Fantom network in my test scripts.
This is test scripits.
beforeEach(async () => {
[owner, ...
0
votes
1
answer
290
views
HardhatError: HH700: Artifact for contract "UniswapV2Router02" not found
I wanna get UniswapV2Router02 deployed on Fantom network.
UniswapRouter = await ethers.getContractAt(
"UniswapV2Router02",
"0xf491e7b69e4244ad4002bc14e878a34207e38c29"
)...
1
vote
0
answers
17
views
MetaMask Registering Contract Methods - Not Working
I was following these docs:
https://docs.metamask.io/guide/registering-function-names.html#verify
After verifying my contract and using the write section, my methods still aren't verified by MetaMask, ...
1
vote
1
answer
262
views
Why is there a public burn function in this Fantom Smart contract?
I was reviewing some of the smart contracts on Fantom and came across this function in ZOO:
https://github.com/ZooEcosystem/ZooCoin/blob/main/contracts/ZOO.sol
Whilst they have an internal burn ...
0
votes
2
answers
29
views
Smart Contract Creation and Functions
I've recently created a smart contract on Fantom and wondered about a few details:
Mint Functions
Burn Functions
Can any users or developers interact with these functions. For example, with my newly ...
0
votes
1
answer
102
views
Transaction triggered successfully but users can edit transaction amount, How can I stop this?
I've recently added FTM payments to my website and discovered once the transaction is sent to MetaMask everything goes to plan but looking at the image below, Users can directly edit the amount sent ...
0
votes
1
answer
103
views
Gnosis Safe on Fantom
There seems to be unofficial Gnosis Safe launched on Fantom blockchain.
https://docs.fantom.foundation/staking/fantom-safe
Does this solution have the same API that Gnosis Safe provides to get ...
0
votes
1
answer
174
views
Wftm swap transaction always fails
I'm trying to swap some wftm tokens for boo tokens on spookyswap. I have 1.11 worth of wftms. I've done it manually with 0.01 worth on the spookyswap website so i don't understand why this code won't ...
0
votes
1
answer
90
views
What does self destruct in a contract mean? [duplicate]
When I see https://ftmscan.com/address/0xe32e98b79329c045c72613b717a4cd0c168c3c49
There is a writing that the contract is self destruct. What does it mean?
Some says that no one knows the private key ...
0
votes
1
answer
20
views
How do we know that a transaction has been canceled?
For example,
If I see this
https://ftmscan.com/tx/0xa491250e25eb3511d6313f662662eb8e10b07d8fb033f81516dce41d97adcda3
It's written
that there is this contract
https://ftmscan.com/tx/...
0
votes
1
answer
267
views
Contract has callable functions not in ABI or source code
I've found several contracts for which I am able to call functions on the contract's front-end but that exist in neither the contract source code nor ABI.
When I call the functions, ftmscan (an analog ...
0
votes
1
answer
123
views
do wallets like metamask interact with infura.io?
I want to create my own wallet using nethereum.
Do I need paid service like infura?
Say I want to send money from one fantom address to another.
Do I need some public ethereum or fantom client?
1
vote
0
answers
152
views
What does difficulty mean in PoA and PoS chains?
In PoW, the meaning of "difficulty" is quite straightforward and, for instance, fully described in yellow paper. (https://ethereum.github.io/yellowpaper/paper.pdf)
But what does the "...
0
votes
1
answer
66
views
0x: Query Liquidity Pools for APR
Is there a way to use 0x to query LPs to find out their current APR? I'm trying to build a small reporting tool and would love to query LPs on these DEXes, but can't seem to figure out how. I tried ...
1
vote
1
answer
117
views
How to query prices on Fantom blockchain
I'm trying to write some Javascript code to query Fantom DEXes to find out the price wFTM in various wFTM / USDC liquidity pools and I'm a bit lost as to what contract method to call.
I'm starting ...
1
vote
1
answer
104
views
Gnosis Safe Fantom - Connect to site that needs to connect using MetaMask and not WalletConnect
have a multi-sig wallet created and in use. It requires 2 of 4 signatures and all seems to be working just fine with it.
I now need to interact with a website (https://play.tankwars.zone/) to connect ...
2
votes
1
answer
693
views
Unable to decode input using Etherscan ABI
I'm looking at the input for a transaction that calls a Smart Contract and I cannot make sense of it. This specific sample is on FTM, but I'm assuming there is no difference in behaviour to ETH?
...
0
votes
0
answers
283
views
FAIL. Reason: SafeMath: subtraction overflow When trying to deposit to Geist on FTM
Keep getting an overflow randomly when trying to deposit to geist. This error randomly occurs and I cannot explain why. Has anyone else experienced this behaviour?
Here is a link to the repo:https://...
0
votes
1
answer
1k
views
Send Signed Transaction with Private key
I deployed Test Token(Copy of LQRD) on Fantom test network.
I sent signed transaction From A account To B account using A private key.
The transaction was succeeded.
But token was not transfered from ...
0
votes
1
answer
66
views
0x API returning error for getting Fantom quote
The call is this one and fails with a "Server Error"
https://fantom.api.0x.org/swap/v1/quote?&buyToken=0x04068da6c83afcfa0e13ba15a6696662335d5b75&sellToken=...
0
votes
0
answers
40
views
Interacting with contract giving absurd price in Metamask
I have created a token exchange contract that works fine when interacting directly from Remix or etherscan.io , but when trying to build the app to work with the contract, it is giving absurd prices ...
0
votes
1
answer
2k
views
ERC20 Approve call to use tokens in another smart contract
I am trying to build a smart contract that is using my custom token. Below you can find the sample of smart contract that I have created that showcases the approve function.
// SPDX-License-Identifier:...
1
vote
0
answers
364
views
Websocket returning "unexpected server response: 200"
Using ethers.js with node, I was able to connect and communicate with websockets until recently. My code did work but now I only get Unexpected server response: 200 as response when trying to ...
0
votes
1
answer
57
views
Different gas costs for token transfer on Fantom network
Can someone explain why the same WFTM transfer costs one time 38k and another time 23k gas?
Here are the two transactions:
https://ftmscan.com/tx/...
1
vote
1
answer
198
views
eth_accounts RPC method returns some unexpected accounts on the Fantom blockchain
What are the accounts that get returned by the eth_accounts RPC call on the Fantom blockchain? This doesn't seem to be the case on other blockchains and they (seemingly) always return an empty list.
...
2
votes
4
answers
400
views
How to deploy a contract in Rinkeby, Ehereum, Polygon and Fantom with the same address?
I have noticed by doing some tests that when I publish the same contract on different networks, the address is the same. Then, the "Etherscan" of each network show a link to blockscan.com ...
2
votes
1
answer
861
views
swap working for `swapExactETHForTokens` but `swapExactTokensForTokens` resulting in an error
I have been trying to write token swap scripts for Spookyswap on Fantom (so the transaction formatting should be pre EIP-1559) in python using web3.py.
I have forked Fantom via Hardhat for testing ...
0
votes
1
answer
271
views
constructing transactions for Fantom
Below is my attempt at constructing a transaction on Fantom
(Keep in mind that Fantom is not EIP-1559 compatible, so the format should be the old one)
contract_txn = contract_SPOOKY_ROUTER.functions....
1
vote
1
answer
1k
views
Unable to send_raw_transaction using Web3.py on Fantom Network
I am currently trying to simply send FTM from one wallet to another on Fantom mainnet, albeit encountering a Value error 'rlp: expected List' as listed below.
ftm = Web3(Web3.HTTPProvider('https://...
0
votes
1
answer
505
views
How to run Dapp on the Fantom blockchain?
I have deployed 2 contracts on Fantom that were running on Rinkeby. Worked really well. However, when I run my Dapp using "yarn dev", I get nothing. It cannot connect to the blockchain.
So ...