CRYPTO NEWS

ethers formatEther(wei) with max 4 decimal places

I want to display a human readable balance with less decimal places like metamask does it. The function formatEther(wei) returns a string, so for proper rounding I need to parse it etc. And I wanted to ask if there is an easier method or best practice how it’s done.

enter image description here

Signatures on arbitrary data

I don’t think it’s possible for owners of a safe to sign arbitrary data, while using the same UI for giving permissions (like queue shows txs that need permission) as when executing txs. I am developing a safe-app in which I need the ability for owners to sign arbitrary data to approve something. After which::Listen

I don’t think it’s possible for owners of a safe to sign arbitrary data, while using the same UI for giving permissions (like queue shows txs that need permission) as when executing txs.

I am developing a safe-app in which I need the ability for owners to sign arbitrary data to approve something. After which the signatures will be relayed to a backend and perform some action.

The only way I can implement this within safe-app is by implementing the entire UI for managing signatures myself, which might be lengthy. Plus having two different flows (1) for approving transactions (2) for approving arbitrary data might be confusing user experience. I was wondering whether there’s any plan to support something like this? Or is there any other way I can implement this?

Thanks!

ethers formatEther(wei) with max 4 decimal places

Shopping cart
There are no products in the cart!
Continue shopping
0