mirror of
https://github.com/nspcc-dev/neofs-contract.git
synced 2026-03-01 04:28:59 +00:00
Do we need to multiply amount to 100000000? #111
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U1
U2
U3
U4
alphabet
audit
balance
blocked
bug
config
container
discussion
documentation
enhancement
feature
go
good first issue
help wanted
neofs
neofsid
netmap
nns
nns
performance
proxy
question
reputation
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-contract#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @masterSplinter01 on GitHub (Oct 27, 2022).
https://github.com/nspcc-dev/neofs-contract/blob/master/neofs/neofs_contract.go#L313
@roman-khimov @alexvanin
@roman-khimov commented on GitHub (Oct 27, 2022):
This is very confusing and also leads to inability to withdraw any fractional amount of GAS (like 0.5 GAS). At the same time that's the interface we have now and changing it can easily break something.
@alexvanin commented on GitHub (Oct 28, 2022):
We had some concerns in the past about having many tiny withdrawals, so it looked okay to restrict fractional amount of GAS.
But now, with those large withdrawal fees (which can be much-much lower with notary subsystem) I don't see any issues with accepting Fixed8 values in
Withdrawmethod.Also /cc @fyrchik @cthulhu-rider @carpawell
@cthulhu-rider commented on GitHub (Oct 28, 2022):
IMO we should process the passed argument value and leave all business logic outside. For example, notification listener can add some zeros by itself.
@roman-khimov commented on GitHub (Dec 30, 2022):
Withdrawwill accept both. It's somewhat strange, but at the same time all old values are in the 1-9000 range and new ones are likely to start from 10_000_000, withdrawing a 0.01 (2 cents) is 100_000 already, so old and new calls can be differentiated this way.@roman-khimov commented on GitHub (Jan 29, 2024):
A new
withdrawGASwould be safer here.@roman-khimov commented on GitHub (Jun 17, 2024):
Maybe this should be initiated from the FS chain. Ideally we want to deduct fees from the bridged amount to reduce scope requirements and this can't be done safely if initiated from the mainnet (consider unsuccessful attempts).