I am new to the development of DEX. Can we able to control the price of our own token of certain increase/decrease in price after every swap through swapping router contract.
https://testnet.bscscan.com/address/0xD99D1c33F9fC3444f8101754aBC46c52416550D1#code
The only way to control the price of the swap on a bonding curve exchange is to trade against it.
If someone sells, you buy.
If someone buys, you sell.
Related
I am working on a side project and was looking to see if there are any API's that given a vehicle's year, make, and model, it would show sort of a timeline for that vehicle's maintenance. For example, how often to change oil, when to change transmission fluid, etc.
Does anyone know of any API's that have this sort of information? I was going to end up trying to create a basic timeline that works with every car, but I thought it would be better to be more accurate with the chosen vehicle model.
I am currently the back-end part of a Spring Boot application and i am willing to integrate a payment method. But I can't seem to find the right payment option. I am a beginner in app development and working solo. Do you have any suggestions?
APPLICATION:
I am developing a platform where users can rent a car for a certain period of time. The application will have a react and android application on the frontend. The users can see the different locations of the available cars on a map within the react and android app. They can make a reservation for a car and unlock, drive and lock it after usage.
PAYMENT METHOD:
I am looking for a payment where the users admits to the payment when unlocking the car, but the price of the ride is not known yet. When the user is finished using the car, the price of the ride will be determined by the distance and time driven by the user.
POSSIBLE SOLUTIONS:
-PayPal: there is a possibility to let the user authorize a payment, but capture the funds later. The funds can be altered but only after three days and with a maximum value of 115 percent.
-CreditCard: I read in a lot of posts that storing creditcard information in a database is a big NO.
-Stripe: Don't really know, possible option?
Are there any solutions/examples of how this problem can be solved.
PayPal: there is a possibility to let the user authorize a payment, but capture the funds later. The funds can be altered but only after three days and with a maximum value of 115 percent.
There is no need to wait 3 days, that is a misreading of the authorization and capture documentation. If you have a need to capture over 115% of the initial authorization, contact PayPal about this. But a simple solution is to authorize something close to the maximum value of what you will need to dependably capture.
Stripe has the ability to place a hold on a card and then capture funds up to 7 days later for the amount you captured or less.
Place a hold on a card to reserve funds now but only capture them after your business completes the service. For example, a hotel may authorize a payment in full prior to a guest’s arrival, then move the money when the guest checks out.
When a payment is authorized, the bank guarantees the amount and holds it on the customer’s card for up to seven days.
You could place a hold for the maximum amount you expect to charge for the ride (say $50) then capture the actual amount when the ride completes (perhaps $23.50).
I'm working on an e-commerce type web application and need to somehow handle calculation of shipping costs. Some rules I've found:
Free shipping
Free shipping with minimum purchase
Free shipping within a certain geographic area
Flat rate shipping
Flat rate + set amount per product
Various rates depending on speed of shipping (shipped immediately and/or how soon it gets to customer)
Based on height, width, depth, weight + shipping distance
Based on rates of various shippers
... and so on.
Any suggestions how to tackle such a problem?
I suggest you take a look at some available open source ecommerce solutions. There are a LOT of them and each one takes a stab at doing exactly what you are trying to do. If it is schema design you are after I wouldn't limit your searches to just MySQL - as long as it contains a relational database it should be easy to dig into the design. I'd take a look at nopcommerce to name just one...
Create a framework where your eCommerce system accepts modules that define shipping rules (and interfaces and calculations, etc). Design it such that you expect these modules to be able to provide all those functions. Let the end users decide which modules to use based on their own needs, as which shipping rules to use is a business decision and not a technology one.
We have 2 sets of prices, $ and £'s.
How best can I handle this.
Should I have a folder with the US site in so when users click on the US flag they go to mydomain.com/us and then navigate from there.
Or is there something simpler I can do?
The HTML site passes users over to our client system when ordering so currency conversion etc isnt needed. Just want advice on how to handle displaying a site in dollars and pounds.
If you have a country field on your user's table you could use this value to determine what symbol and prices to show.
If you are trying to keep it really simple without any server-side page generation use a bit of JavaScript. Pick a default currency and allow the user to click US or UK to switch to the other one. Javascript can be used to set a cookie so that when the user revisits the website, or views other pages, you can automatically set the preferred currency.
There are a few different ways to perform the conversion, and it probably depends most on how you do the conversion yourself. If you are just going by a current exchange rate store the prices in one currency for each item in a table and then have it apply the exchange rate as part of your conversion function.
We are looking at ways to cut costs, and one idea I had was to push our customer's bills into the Bill Pay systems that banks (and other sites) use. Only thing is, I don't know how to do that? My searches in the past didn't turn up any information for the company side.
Can anyone point me in a productive direction? Is there a single clearing house for this or do you have to set something up with each site?
More details: We are a local government that sends out utility bills on a monthly basis. We currently offer ACH and online bill payment (through our web site) options. But with so many (or so it seems) people using the free bill pay that banks are now offering, it would be a great option to push their bills to those that like to use this option. If it's cost effective, that is.
Instead of pushing them to a third party (who you presumably pay for the service) could you build your own system?
Either email a PDF bill, or let them log onto your website to get their balance etc. Then let them pay through your website?
It's not that difficult to sent up an online payment system....