This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allows working around rounding issues in cash
- Loading branch information
Showing
3 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
### sai-cash -- cash in sai balance for gems after cage | ||
set -e | ||
sai=$(token balance "$(sai sai)" "${ETH_FROM?}") | ||
echo >&2 "Cashing in $sai SAI..." | ||
(set -x; seth send "${SAI_TAP?}" "cash()") | ||
jam=$(token balance "$(sai sai)" "${ETH_FROM?}") | ||
echo >&2 "Cashing in $jam SAI..." | ||
wad=$(sai wad $jam) | ||
(set -x; seth send "${SAI_TAP?}" "cash(uint256)" $wad ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters