Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.54 KB

fip-0043.md

File metadata and controls

50 lines (40 loc) · 1.54 KB
fip title status type author created updated
43
Update get_fee validation
Final
Functionality
Pawel Mastalerz <[email protected]>
2022-03-17
2024-01-19

Abstract

This FIP updates /get_fee to properly return a token fee for actions which are bundle-eligible, but do not require a FIO Address.

Modified getters

Endpoint Description
/get_fee Made FIO Address optional for actions which do not require a FIO Address.

Motivation

Currently the /get_fee endpoint requires FIO Address for any action which is bundle-eligible. However, not all actions require a FIO Address and may instead be paid with a token fee. This makes it impossible to check a token fee if your FIO Address has enough bundled transaction. It should be possible to check token fee on any action which does not require a FIO Address.

Specification

Modified getters

get_fee

Request

Unchanged

Processing

Do not require FIO Address for the following fees:

  • /stake_fio_tokens
  • /unstake_fio_tokens
  • /vote_producer
  • /proxy_vote

Response

Unchanged

Rationale

Change is required to properly communicate fees.

Implementation

Consider how this list will be updated in the future when a new fee is added on an action which is bundle-eligible but does not require a FIO Address.

Backwards Compatibility

No changes to requests/responses in existing actions or getters.

Future considerations

None

Discussion link

https://fioprotocol.atlassian.net/browse/WP-1135