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
let re = /\D*/g | |
input | |
.map(item => { | |
// replace map | |
digiMap = | |
[ | |
['one', '1'], | |
['two', '2'], | |
['three', '3'], | |
['four', '4'], |
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
let re = /\D*/g | |
input | |
.map(item => { | |
// replace map | |
digiMap = | |
[ | |
['one', '1'], | |
['two', '2'], | |
['three', '3'], | |
['four', '4'], |
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
let re = /\D*/g | |
input | |
.map(item => { | |
// replace map | |
digiMap = | |
[ | |
['one', '1'], | |
['two', '2'], | |
['three', '3'], | |
['four', '4'], |
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
sq5fivetwothree1 | |
six5gc | |
txb3qfzsbzbxlzslfourone1vqxgfive | |
3onethreebrth | |
cseven7nqqxnkzngndtddfiverkxkxqjjsr | |
2lvpmzh4 | |
threeqxqndvjrz15 | |
threetwo1drtzsixtwofourppvg | |
zxhsndseven2vbnhdtfpr3bt86 | |
onethreelqqqqvj7eightnine5 |
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
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) | |
pragma solidity ^0.8.0; | |
import "draft-IERC1822Upgradeable.sol"; | |
import "ERC1967UpgradeUpgradeable.sol"; | |
import "Initializable.sol"; | |
/** |
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
# STEAL FUNDS VIA MINT AND REDEEM | |
from world import * | |
LUSD="0x5f98805A4E8be255a32880FDeC7F6728C6568bA0" | |
LIQUITY_ST_POOL="0x66017D22b0f8556afDd19FC67041899Eb65a21bb" | |
ATTACKER="0x5E687f547d26732A3F1213e1C31432C3EF6810bc" | |
LUSD_POOL="0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca" | |
DAI_BAGS="0x075e72a5eDf65F0A5f44699c7654C1a76941Ddc8" | |
lusd = load_contract('ERC20', LUSD) |
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
### Keybase proof | |
I hereby claim: | |
* I am sparrowdom on github. | |
* I am domeng (https://keybase.io/domeng) on keybase. | |
* I have a public key ASCmoV-8q6TbeNqfAGzYnI2GFiwZGvkTbpGZKN_4MmAKVQo | |
To claim this, I am signing this object: |
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
MacBook-Pro-2:zerion domen-privat$ npm run test:adapters | |
> zerion-defi-sdk@1.0.0 test:adapters /Users/domen-privat/projects/OriginProtocol/zerion | |
> TEST_FILES=./test/adapters/*.js ./scripts/test.sh | |
Starting our own ganache instance | |
Using network 'development'. | |
Compiling your contracts... |
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
MacBook-Pro-2:zerion domen-privat$ npm run test:core | |
> zerion-defi-sdk@1.0.0 test:core /Users/domen-privat/projects/OriginProtocol/zerion | |
> TEST_FILES=./test/core/*.js ./scripts/test.sh | |
Starting our own ganache instance | |
Using network 'development'. | |
Compiling your contracts... |
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
import React, { Component, Fragment } from 'react' | |
import { Image, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native' | |
import ImagePicker from 'react-native-image-picker' | |
import ImageResizer from 'react-native-image-resizer' | |
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view' | |
import { SafeAreaView, withNavigation, NavigationEvents } from 'react-navigation' | |
import ActionSheet from 'react-native-actionsheet' | |
import Button from 'components/button' | |
import TextField from 'components/text-field' |
NewerOlder