You are viewing a single comment's thread from:

RE: Hive Devs, generate revenue through our Keychain Swap Widget

in #keychain3 months ago (edited)

Has anyone integrated this yet / have you tested it as an embed yourselves?

I just launched it in the tokens section of Crypto Shots...

image.png

          vvv

image.png


How can the iframe communicate with the hive keychain that is installed in the parent window? AFAIK iframes by default don't have access to browser extensions. (PS. This is true only for Firefox, that we push because works best for wasm games)

I believe it can't work as is and that you guys also need to write an npm package that works as bridge on the hosting website.

I think there's a way to disable this restriction for specific browsers but probably not expected for end users to do that.
So the library/bridge should take care of sending postMessages from the iframe to the parent window and sending back postMessages for confirmation/failures.

Sort:  

3 more questions:

1. Is it true that the partner fee is applied on top of your usual fee? Meaning that users would simply save money by just clicking on the extension and swapping there instead of using the embedded widget?

2. Is the slippage URL parameter working correctly? It still shows 5 if I navigate to the generated link for the iframe

image.png
PS - seems to work in the iframe though

3. I can't select the token form the dropdown.

image.png
PS - works fine if I just add them directly as URL parameters.

Thx


Hey @gaottantacinque, here is a little bit of BEER from @isnochys for you. Enjoy it!

Learn how to earn FREE BEER each day by staking your BEER.

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below