osmosis-labs / affiliate-swap

1 stars 3 forks source link

Make Default max fee of decimal type #1

Open ValarDragon opened 1 year ago

ValarDragon commented 1 year ago

Can we make Default Max fee be of decimal type? https://github.com/osmosis-labs/affiliate-swap/blob/main/src/contract.rs#LL16C35-L16C35

Should be able to do logic in a code block if theres no way to construct it directly

nicolaslara commented 1 year ago

That gets converted to a decimal on instantiate (https://github.com/osmosis-labs/affiliate-swap/blob/main/src/contract.rs#L58). It's a string to match what gets sent by the user (and to avoid having to deal with global statics that run code)