Update lib speedealing for total amount