Web3 DAO | Uniswap Logo

gnosis SafeApp introduces a 300ms pageload timeout

Ethereum

Organization

Uniswap

Deadline

N/A

Status

LIVE


INSTRUCTIONS

To use the gnosis SafeApp, you must check for it before using other injectors, so it sits in the pageload critical path.

To check for SafeApp, the SDK races an iframe postMessage with a 300ms timeout (see https://github.com/gnosis/safe-apps-sdk/blob/master/packages/safe-apps-web3-react/src/connector.ts#L52). This should be skipped if we are not in an iframe, and there should be an immediate, deterministic way to tell if we are in a SafeApp.

ABOUT UNISWAP

Uniswap is an automated liquidity provider for swapping, earning, and building on the leading decentralized crypto trading protocol. Uniswap is governed by its community and enables developers to build third-party solutions on top of the protocol.